Bug 947531 - Focus the test window before starting the test. a=test-only
authorEhsan Akhgari <ehsan@mozilla.com>
Sat, 29 Mar 2014 19:26:37 -0400
changeset 183606 73f34f8b0b3aedd9e3fd59d2b18ab7a776ebc8ce
parent 183605 0e38a95ffbfeedfb54c3e666bbf417ffb0c188f8
child 183607 3672b5508f0ea5b9d000a1b32f451ee0dd1d14ca
push id3419
push userryanvm@gmail.com
push dateWed, 02 Apr 2014 16:42:40 +0000
treeherdermozilla-beta@37ab641216bd [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs947531
milestone29.0
Bug 947531 - Focus the test window before starting the test. a=test-only
toolkit/components/satchel/test/test_bug_511615.html
--- a/toolkit/components/satchel/test/test_bug_511615.html
+++ b/toolkit/components/satchel/test/test_bug_511615.html
@@ -376,15 +376,15 @@ function runTest() {
 
   SimpleTest.executeSoon(runTest);
 }
 
 function startTest() {
   setupFormHistory(runTest);
 }
 
-window.onload = startTest;
+SimpleTest.waitForFocus(startTest);
 
 SimpleTest.waitForExplicitFinish();
 </script>
 </pre>
 </body>
 </html>