Bug 977625 - Robustify test_formaction_attribute to run on a local b2g-emulator setup. r=mounir
authorKartikaya Gupta <kgupta@mozilla.com>
Thu, 06 Mar 2014 10:02:22 -0500
changeset 183329 0f87e8f8446ca26d13c52df45e9995ab498dd185
parent 183328 97a317e7c1db5ef44199c5610ef1bb0fa243e10c
child 183330 6048059d6ea1b35cd7a5175e76c8dae9db856a57
push id5439
push userffxbld
push dateMon, 17 Mar 2014 23:08:15 +0000
treeherdermozilla-aurora@c0befb3c8038 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmounir
bugs977625
milestone30.0a1
Bug 977625 - Robustify test_formaction_attribute to run on a local b2g-emulator setup. r=mounir
content/html/content/test/forms/test_formaction_attribute.html
--- a/content/html/content/test/forms/test_formaction_attribute.html
+++ b/content/html/content/test/forms/test_formaction_attribute.html
@@ -63,19 +63,17 @@ https://bugzilla.mozilla.org/show_bug.cg
   </form>
 </div>
 <pre id="test">
 <script type="application/javascript">
 
 /** Test for Bug 566160 **/
 
 SimpleTest.waitForExplicitFinish();
-addLoadEvent(function() {
-  setTimeout(runTests, 0);
-});
+SimpleTest.waitForFocus(runTests);
 
 var gTestResults = {
   frame1: "data:text/html,?foo=foo",
   frame2: "data:text/html,?bar=bar&x=0&y=0",
   frame3: "data:text/html,?tulip=tulip",
   frame3bis: "data:text/html,?tulipbis=tulipbis",
   frame4: "data:text/html,?footulip=footulip",
   frame5: "data:text/html,?foobar=foobar&x=0&y=0",