Reviewed by NOBODY.
authorantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Sep 2007 01:28:57 +0000 (01:28 +0000)
committerantti <antti@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 28 Sep 2007 01:28:57 +0000 (01:28 +0000)
        Update tests to hopefully fix occasional failures

        * fast/dom/Window/window-early-properties.html:
        * http/tests/security/resources/has-custom-property.html:
        * http/tests/security/resources/no-custom-property.html:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25789 268f45cc-cd09-0410-ab3c-d52691b4dbfc

LayoutTests/ChangeLog
LayoutTests/fast/dom/Window/window-early-properties.html
LayoutTests/http/tests/security/resources/has-custom-property.html
LayoutTests/http/tests/security/resources/no-custom-property.html

index 8463135ac7d558342aadaa1dc50db65feaeb759e..a5445a66b642ba94d6853e8262a5ffc7944623e1 100644 (file)
@@ -1,3 +1,13 @@
+2007-09-27  Antti Koivisto  <antti@apple.com>
+
+        Reviewed by NOBODY.
+        
+        Update tests to hopefully fix occasional failures
+
+        * fast/dom/Window/window-early-properties.html:
+        * http/tests/security/resources/has-custom-property.html:
+        * http/tests/security/resources/no-custom-property.html:
+
 2007-09-27  Mitz Pettel  <mitz@webkit.org>
 
         Reviewed by Dave Hyatt.
index 6a061cb5276f73f4f36e62cfbdcd58ddd4d9cab0..915068a524381647c8e6742ccd6aca1f7be7cfda 100644 (file)
@@ -20,9 +20,19 @@ function test2()
     var c = document.getElementById('console');
     c.innerHTML = "window retains early properties: " + ((w.myProp && w.myProp=='1') ? "PASS" : "FAIL") + "<br>";  
     c.innerHTML +="document does not retain early properties: " + ((w.document.myProp) ? "FAIL" : "PASS") + "<br>";
+    
     w.close();
-    if (window.layoutTestController) 
-        layoutTestController.notifyDone();
+    setTimeout(doneHandler, 1);
+    function doneHandler() {
+        if (w.closed) {
+            if (window.layoutTestController)
+                layoutTestController.notifyDone();
+            return;
+        }
+
+        setTimeout(doneHandler, 1);
+    }
+
 }
 </script>
 <body onload='test()'>
index 8ebf23d946be4a38751748df0313ac4b1914ee64..5300d5c70742af692bb3bd225f3fae79bdc57400 100644 (file)
@@ -3,7 +3,10 @@ if (window.myProp)
     alert("PASS");
 else 
     alert("FAIL, no myProp found");
-window.close();
-if (window.layoutTestController)
+
+if (window.layoutTestController) {
+    layoutTestController.setCloseRemainingWindowsWhenComplete();
     layoutTestController.notifyDone();
+}
+
 </script>
index 2af412841505c24d056ebfe27f83420877329048..e2587b290825f4cbb634043960b9619e63a911ff 100644 (file)
@@ -1,9 +1,12 @@
+<script src='cross-frame-access.js'></script>
 <script>
 if (window.myProp)
     alert("FAIL, myProp found");
 else 
     alert("PASS");
-window.close();
-if (window.layoutTestController)
+
+if (window.layoutTestController) {
+    layoutTestController.setCloseRemainingWindowsWhenComplete();
     layoutTestController.notifyDone();
+}
 </script>