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 203143 1772e55568e420f8c7fbf7b9434157e9f419c8f1
parent 203142 606f7891e3c437852c6b29f741d075ad7df65a69
child 203144 6befadcaa68524d24960d8342e00503e4edc1869
push id7
push userryanvm@gmail.com
push dateTue, 22 Jul 2014 16:29:37 +0000
treeherdermozilla-b2g32_v2_0@f6eced22c26c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
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);