Bug 1333270 - Fix frequently failing test_bug263683.xul by reordering the sequence of events on a fresh document. r=jaws, a=test-only
authorMike de Boer <mdeboer@mozilla.com>
Wed, 08 Feb 2017 17:16:55 +0100
changeset 378335 3ae4ed8cb4ab90fcf364d7d40cbdd3beea0949ef
parent 378334 600b2907f10f5b642ed8d1c896dfacac8ab0a441
child 378336 554a0f6b74d8411b99d1c475fb659ecc68aa01c7
push id1419
push userjlund@mozilla.com
push dateMon, 10 Apr 2017 20:44:07 +0000
treeherdermozilla-release@5e6801b73ef6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjaws, test-only
bugs1333270, 263683
milestone53.0a2
Bug 1333270 - Fix frequently failing test_bug263683.xul by reordering the sequence of events on a fresh document. r=jaws, a=test-only MozReview-Commit-ID: 85CnDZ6ltSB
toolkit/content/tests/chrome/bug263683_window.xul
--- a/toolkit/content/tests/chrome/bug263683_window.xul
+++ b/toolkit/content/tests/chrome/bug263683_window.xul
@@ -79,18 +79,18 @@
       var search = "mozilla";
       gFindBar._findField.focus();
       gFindBar._findField.value = search;
       var matchCase = gFindBar.getElement("find-case-sensitive");
       if (matchCase.checked) {
         matchCase.doCommand();
       }
 
+      yield toggleHighlightAndWait(true);
       gFindBar._find();
-      yield toggleHighlightAndWait(true);
 
       yield ContentTask.spawn(gBrowser, { search }, function* (args) {
         let controller = docShell.QueryInterface(Ci.nsIInterfaceRequestor)
                                  .getInterface(Ci.nsISelectionDisplay)
                                  .QueryInterface(Ci.nsISelectionController);
         Assert.ok("SELECTION_FIND" in controller, "Correctly detects new selection type");
         let selection = controller.getSelection(controller.SELECTION_FIND);