Bug 651136 - Make content/events/test/test_bug238987.html non flaky. r=ehsan
authorMounir Lamouri <mounir.lamouri@gmail.com>
Wed, 20 Apr 2011 11:46:32 +0200
changeset 68354 aa1799ffecc56a97e519388df462918adfc7d842
parent 68353 7dc525f97223fe4b1c277ac893ab4a93b5876f38
child 68355 aed1a67f173878f5897ab5a9aacfd6ab9cabe528
push idunknown
push userunknown
push dateunknown
reviewersehsan
bugs651136, 238987
milestone6.0a1
first release with
nightly win64
aa1799ffecc5 / 6.0a1 / 20110420030207 / files
nightly linux32
nightly linux64
nightly mac
nightly win32
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
releases
nightly win64
Bug 651136 - Make content/events/test/test_bug238987.html non flaky. r=ehsan
content/events/test/test_bug238987.html
--- a/content/events/test/test_bug238987.html
+++ b/content/events/test/test_bug238987.html
@@ -131,17 +131,17 @@ https://bugzilla.mozilla.org/show_bug.cg
       is(backwardBlurArray.length, 0,
          "Not all backward tabbing blur tests were run, " +
          backwardBlurArray.toString());
       is(expectedWindowBlurCount, 0,
          "|window| didn't get the right amount of blur events");
       setOrRestoreTabFocus(0);
       SimpleTest.finish();
     } else {
-      setTimeout(tab, 50);
+      setTimeout(tab, 0);
     }
   }
 
   function start() {
     window.focus();
     window.addEventListener("focus", handleWindowFocus, true);
     window.addEventListener("focus", handleWindowFocus, false);
     window.addEventListener("blur", handleWindowBlur, true);
@@ -156,17 +156,17 @@ https://bugzilla.mozilla.org/show_bug.cg
         elements[i].setAttribute("tabindex", "-1");
       }
     }
     tab();
   }
 
   function doTest() {
     setOrRestoreTabFocus(7);
-    setTimeout(start, 100);
+    setTimeout(start, 0);
   }
 
   SimpleTest.waitForExplicitFinish();
   addLoadEvent(doTest);
 
 </script>
 </pre>
   <h4 tabindex="0" id="begin">Test:</h4>