Bug 895288 - Stop loading earlier in browser_aboutHome.js to avoid console spam of Google css warnings. r=ttaubert, a=test-only
authorMarco Bonardo <mbonardo@mozilla.com>
Fri, 19 Jul 2013 15:51:37 +0200
changeset 148342 fc5259bc0785521bdb5a8bde8d3456446e116f44
parent 148341 9edc74182c21d2efeab9064855518167d30540a1
child 148343 6958214691c33fe3725df5b173486a50c0df89fd
push id2757
push userryanvm@gmail.com
push dateThu, 15 Aug 2013 16:30:15 +0000
treeherdermozilla-beta@8d2700f8bed0 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersttaubert, test-only
bugs895288
milestone24.0
Bug 895288 - Stop loading earlier in browser_aboutHome.js to avoid console spam of Google css warnings. r=ttaubert, a=test-only
browser/base/content/test/browser_aboutHome.js
--- a/browser/base/content/test/browser_aboutHome.js
+++ b/browser/base/content/test/browser_aboutHome.js
@@ -106,31 +106,30 @@ let gTests = [
     let doc = gBrowser.contentDocument;
     let engineName = doc.documentElement.getAttribute("searchEngineName");
 
     // We rely on the listener in browser.js being installed and fired before
     // this one. If this ever changes, we should add an executeSoon() or similar.
     doc.addEventListener("AboutHomeSearchEvent", function onSearch(e) {
       is(e.detail, engineName, "Detail is search engine name");
 
-      gBrowser.stop();
-
       getNumberOfSearches(engineName).then(num => {
         is(num, numSearchesBefore + 1, "One more search recorded.");
         deferred.resolve();
       });
     }, true, true);
 
     // Get the current number of recorded searches.
     getNumberOfSearches(engineName).then(num => {
       numSearchesBefore = num;
 
       info("Perform a search.");
       doc.getElementById("searchText").value = "a search";
       doc.getElementById("searchSubmit").click();
+      gBrowser.stop();
     });
 
     return deferred.promise;
   }
 },
 
 {
   desc: "Check snippets map is cleared if cached version is old",