Speculative fix for an intermittently failing test
authoraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Oct 2007 00:02:59 +0000 (00:02 +0000)
committeraroben <aroben@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sun, 28 Oct 2007 00:02:59 +0000 (00:02 +0000)
         Reviewed by Sam and Eric.

         * http/tests/local/style-access-before-stylesheet-loaded.html: Use
         waitUntilDone/notifyDone.

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

LayoutTests/ChangeLog
LayoutTests/http/tests/local/style-access-before-stylesheet-loaded.html

index b20c85b..ab93c3e 100644 (file)
@@ -1,5 +1,14 @@
 2007-10-27  Adam Roben  <aroben@apple.com>
 
+        Speculative fix for an intermittently failing test
+
+        Reviewed by Sam and Eric.
+
+        * http/tests/local/style-access-before-stylesheet-loaded.html: Use
+        waitUntilDone/notifyDone.
+
+2007-10-27  Adam Roben  <aroben@apple.com>
+
         Add some more failing tests to the Windows Skipped file
 
         Reviewed by NOBODY.
index a64c5d6..c5dd8b3 100644 (file)
@@ -12,6 +12,9 @@ function test() {
         e.offsetLeft;
     var time = new Date().getTime() - start;
     console.innerHTML = ((time < 500) ? "<span style='color:green'>PASS</span> " :  "<span style='color:red'>FAIL</span> ");// + time;
+
+    if (window.layoutTestController)
+        layoutTestController.notifyDone();
 }
 </script>
 
@@ -24,6 +27,8 @@ Works as HTTP test only.
 <div id=console></div>
 <div id=t></div>
 <script>
+if (window.layoutTestController)
+    layoutTestController.waitUntilDone();
 // increase document complexity a bit
 for (n = 0; n < 500; n++)
     document.write("<div><span></span><div><span></span></div></div>");