[Laszlo-checkins] r13857 - openlaszlo/trunk/test/smoke
bargull@openlaszlo.org
bargull at openlaszlo.org
Mon May 11 05:54:01 PDT 2009
Author: bargull
Date: 2009-05-11 05:53:57 -0700 (Mon, 11 May 2009)
New Revision: 13857
Modified:
openlaszlo/trunk/test/smoke/math.lzl
openlaszlo/trunk/test/smoke/regression.lzl
Log:
Change 20090511-bargull-Wfw by bargull at dell--p4--2-53 on 2009-05-11 11:00:53
in /home/Admin/src/svn/openlaszlo/trunk
for http://svn.openlaszlo.org/openlaszlo/trunk
Summary: smokecheck -> swf9 vs IE
New Features:
Bugs Fixed: LPP-8057 (still some minor update for lfc-data possible), LPP-8070 (DHTML: smoke-check, multple errors IE6)
Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)
Documentation:
Release Notes:
Details:
So let's use the workarounds for LPP-5058 and LPP-8092:
math.lzl: it doesn't matter how the "randTest" functions is defined, so make it cross-platform
regression.lzl: use the switch-tag to create different versions for swf8+dhtml and swf9
Tests:
smokecheck (swf8, swf9, dhtml)
Modified: openlaszlo/trunk/test/smoke/math.lzl
===================================================================
--- openlaszlo/trunk/test/smoke/math.lzl 2009-05-11 09:03:15 UTC (rev 13856)
+++ openlaszlo/trunk/test/smoke/math.lzl 2009-05-11 12:53:57 UTC (rev 13857)
@@ -6,13 +6,13 @@
<script when="immediate">
<![CDATA[
- function randTest(it){
+ var randTest = function (it) {
// 'it' is iterations to check
// returns pass if 'it' iterations do not match
-
+
var stack=[it]; // for holding numbers
// fill stack
-
+
for(var j=0;j<it;j++){
stack[j]=Math.random();
}
Modified: openlaszlo/trunk/test/smoke/regression.lzl
===================================================================
--- openlaszlo/trunk/test/smoke/regression.lzl 2009-05-11 09:03:15 UTC (rev 13856)
+++ openlaszlo/trunk/test/smoke/regression.lzl 2009-05-11 12:53:57 UTC (rev 13857)
@@ -179,22 +179,47 @@
</method>
</class>
- <script when="immediate">
- // Function defs for bug 535
- function Foo (name) { this.name = name};
- Foo.prototype.setUp = function () {
- this.f = function () { return function () { return 19 }};
+<switch>
+ <when property="$as3">
+ <!-- FIXME: [20090511 anba] functions aren't emitted in global scope
+ if when="immediate" is set (LPP-8092)
+ -->
+ <script>
+ // Function defs for bug 535
+ function Foo (name) { this.name = name};
+ Foo.prototype.setUp = function () {
+ this.f = function () { return function () { return 19 }};
}
- Foo.prototype.run = function () {
- return this.f()();
+ Foo.prototype.run = function () {
+ return this.f()();
}
-
+
function eff () { return function () { return 37 } };
- var ohh = { g: function(){return 9}, f: function(){return this.g} }
- var g = function g () { return 42 }
+ var ohh = { g: function(){return 9}, f: function(){return this.g} };
+ var g = function g () { return 42 };
+ </script>
+ </when>
+ <otherwise>
+ <!-- FIXME: [20090511 anba] global functions must be declared with
+ when="immediate" for IE (LPP-5058)
+ -->
+ <script when="immediate">
+ // Function defs for bug 535
+ function Foo (name) { this.name = name};
+ Foo.prototype.setUp = function () {
+ this.f = function () { return function () { return 19 }};
+ }
+ Foo.prototype.run = function () {
+ return this.f()();
+ }
+
+ function eff () { return function () { return 37 } };
+ var ohh = { g: function(){return 9}, f: function(){return this.g} };
+ var g = function g () { return 42 };
+ </script>
+ </otherwise>
+</switch>
- </script>
-
<class name="bug_535" extends="TestCase">
<method name="setUp">
<![CDATA[
More information about the Laszlo-checkins
mailing list