[Laszlo-checkins] r13717 - openlaszlo/trunk/test/smoke

bargull@openlaszlo.org bargull at openlaszlo.org
Mon Apr 20 10:21:16 PDT 2009


Author: bargull
Date: 2009-04-20 10:21:12 -0700 (Mon, 20 Apr 2009)
New Revision: 13717

Modified:
   openlaszlo/trunk/test/smoke/compiler.lzl
   openlaszlo/trunk/test/smoke/math.lzl
   openlaszlo/trunk/test/smoke/regression.lzl
Log:
Change 20090419-bargull-7bq by bargull at dell--p4--2-53 on 2009-04-19 20:41:29
    in /home/Admin/src/svn/openlaszlo/trunk
    for http://svn.openlaszlo.org/openlaszlo/trunk

Summary: errors in smoke-check DHTML-IE

New Features:

Bugs Fixed: LPP-8070 (DHTML: smoke-check, multple errors IE6)

Technical Reviewer: ptw
QA Reviewer: (pending)
Doc Reviewer: (pending)

Documentation:

Release Notes:

Details:
- add when="immediate" to global functions in script-block (also see LPP-5058).
- hasOwnProperty doesn't exist for the global-object in IE, to workaround this limitation you can call the function from Object.prototype
    

Tests:
smokecheck in DHTML-IE



Modified: openlaszlo/trunk/test/smoke/compiler.lzl
===================================================================
--- openlaszlo/trunk/test/smoke/compiler.lzl	2009-04-20 08:00:15 UTC (rev 13716)
+++ openlaszlo/trunk/test/smoke/compiler.lzl	2009-04-20 17:21:12 UTC (rev 13717)
@@ -123,10 +123,23 @@
              if (query.hasOwnProperty('lzr')) {
                  assertEquals($runtime, query.lzr, "$runtime matches query arg");
              }
+
+             var globalHasOwnProperty = function (name) {
+                if (typeof global.hasOwnProperty == 'function') {
+                    return global.hasOwnProperty(name);
+                } else {
+                    try {
+                        // the global object may not have hasOwnProperty (LPP-8070)
+                        return Object.prototype.hasOwnProperty.call(global, name);
+                    } catch (e) {
+                        return name in global;
+                    }
+                }
+             }
              // Verify runtime copies of compile-time conditionals are consistent.
              for (var runtime = 5; runtime < 10; runtime++) {
                  runtime = 'swf' + runtime;
-                 if (global.hasOwnProperty('$' + runtime)) {
+                 if (globalHasOwnProperty('$' + runtime)) {
                      assertEquals(global['$' + runtime], $runtime == runtime, "Runtime copies of compile-time constants");
                  }
              }

Modified: openlaszlo/trunk/test/smoke/math.lzl
===================================================================
--- openlaszlo/trunk/test/smoke/math.lzl	2009-04-20 08:00:15 UTC (rev 13716)
+++ openlaszlo/trunk/test/smoke/math.lzl	2009-04-20 17:21:12 UTC (rev 13717)
@@ -1,10 +1,10 @@
 <library>
 <!-- * X_LZ_COPYRIGHT_BEGIN ***************************************************
-* Copyright 2001-2004 Laszlo Systems, Inc.  All Rights Reserved.              *
+* Copyright 2001-2004, 2009 Laszlo Systems, Inc.  All Rights Reserved.              *
 * Use is subject to license terms.                                            *
 * X_LZ_COPYRIGHT_END ****************************************************** -->
 
-  <script>
+  <script when="immediate">
     <![CDATA[
     function randTest(it){
       // 'it' is iterations to check

Modified: openlaszlo/trunk/test/smoke/regression.lzl
===================================================================
--- openlaszlo/trunk/test/smoke/regression.lzl	2009-04-20 08:00:15 UTC (rev 13716)
+++ openlaszlo/trunk/test/smoke/regression.lzl	2009-04-20 17:21:12 UTC (rev 13717)
@@ -179,7 +179,7 @@
         </method> 
     </class>
 
-    <script>
+    <script when="immediate">
     // Function defs for bug 535
         function Foo (name) { this.name = name};
         Foo.prototype.setUp = function () {



More information about the Laszlo-checkins mailing list