Bug 649012 - Revert test_bug583948.xul since the new version fails on Linux64
authorEhsan Akhgari <ehsan@mozilla.com>
Mon, 18 Apr 2011 20:15:53 -0400
changeset 68269 394772171075c0363585e7c8c24f58c405088e99
parent 68268 72dcd6a39311091581b536ff2968fc19635b61ec
child 68270 e4564e608e8a264d37233f74ca881d2cf149387c
push id19567
push usereakhgari@mozilla.com
push dateTue, 19 Apr 2011 00:16:11 +0000
treeherdermozilla-central@394772171075 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
bugs649012, 583948
milestone6.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 649012 - Revert test_bug583948.xul since the new version fails on Linux64
content/xul/document/test/test_bug583948.xul
--- a/content/xul/document/test/test_bug583948.xul
+++ b/content/xul/document/test/test_bug583948.xul
@@ -13,29 +13,29 @@
 </body>
 
 <script>
 SimpleTest.waitForExplicitFinish();
 
 var attempts = 0;
 
 function update() {
+  setTimeout(function() {
+    if (otherWindow.location)
+      otherWindow.location.reload()
+    }, 1);
+  otherWindow.document.commandDispatcher.updateCommands('');
   // without the crash fix, this usually crashes after 2 to 4 reloads
   if (++attempts == 6) {
     ok(true, "didn't crash after 6 attempts");
     otherWindow.close();
-    SimpleTest.waitForFocus(function() {
-      SimpleTest.finish();
-    });
-  } else {
-    SimpleTest.waitForFocus(function() {
-      otherWindow.location.reload()
-      SimpleTest.waitForFocus(update, otherWindow);
-    });
-    otherWindow.document.commandDispatcher.updateCommands('');
+    SimpleTest.finish();
+  }
+  else {
+    setTimeout(update, 100);
   }
 }
 
 var otherWindow = window.open("window_bug583948.xul", "_new", "chrome");
-SimpleTest.waitForFocus(update, otherWindow);
+setTimeout(update, 100);
 </script>
 
 </window>