Bug 1150038 - Add a waitForFocus to this test. a=test-only
authorNeil Deakin <neil@mozilla.com>
Wed, 01 Apr 2015 15:45:54 -0400
changeset 266817 6d2599c75ac3197376d70f1c8a6d2c9600b010c7
parent 266816 08db315a9e09d436248c4c65068a084b8682490c
child 266818 259d9616709dad97f4f154e9210f1b8f26a1c745
push id830
push userraliiev@mozilla.com
push dateFri, 19 Jun 2015 19:24:37 +0000
treeherdermozilla-release@932614382a68 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerstest-only
bugs1150038
milestone39.0a2
Bug 1150038 - Add a waitForFocus to this test. a=test-only
browser/base/content/test/general/test_contextmenu_input.html
--- a/browser/base/content/test/general/test_contextmenu_input.html
+++ b/browser/base/content/test/general/test_contextmenu_input.html
@@ -322,17 +322,17 @@ function waitForEvents(event)
 {
   if (event.type == "MozAfterPaint")
     painted = true;
   else if (event.type == "load")
     loaded = true;
   if (painted && loaded) {
     subwindow.removeEventListener("MozAfterPaint", waitForEvents, false);
     subwindow.onload = null;
-    startTest();
+    SimpleTest.waitForFocus(startTest, subwindow);
   }
 }
 
 var subwindow = window.open("data:text/html,<!DOCTYPE html><input><input spellcheck='true' value='prodkjfgigrty'><input spellcheck='true' value='foo'><input readonly spellcheck='false'>", "contextmenu-subtext", "width=600,height=700");
 subwindow.addEventListener("MozAfterPaint", waitForEvents, false);
 subwindow.onload = waitForEvents;
 
 SimpleTest.waitForExplicitFinish();