Bug 943269 - Minor tweak that might fix the test timeouts. r=mwargers, a=test-only FIREFOX_RELEASE_31_BASE
authorMats Palmgren <mats@mozilla.com>
Sun, 13 Jul 2014 13:01:43 +0000
changeset 219790 1772e55568e420f8c7fbf7b9434157e9f419c8f1
parent 219789 606f7891e3c437852c6b29f741d075ad7df65a69
child 219791 6befadcaa68524d24960d8342e00503e4edc1869
push id3
push usergszorc@mozilla.com
push dateWed, 29 Oct 2014 02:45:36 +0000
reviewersmwargers, test-only
bugs943269
milestone31.0
Bug 943269 - Minor tweak that might fix the test timeouts. r=mwargers, a=test-only
layout/forms/test/test_bug402198.html
--- a/layout/forms/test/test_bug402198.html
+++ b/layout/forms/test/test_bug402198.html
@@ -51,18 +51,17 @@ function doe3() {
   document.body.offsetHeight;
 
   document.getElementById('a').focus();
   document.body.style.display = 'none';
 
   synthesizeKey('VK_TAB', {type: "keypress", shiftKey: true});
 
   is(0, 0, "this is a crash/assertion test, so we're ok if we survived this far");
-  SimpleTest.finish();
-  setTimeout(function() {document.body.style.display = '';}, 400);
+  setTimeout(function() {document.body.style.display = ''; SimpleTest.finish();}, 0);
 }
 
 function do_test() {
   setTimeout(doe3,300);
 }
 
 SimpleTest.waitForExplicitFinish();
 addLoadEvent(do_test);