Bug 1150005 - Don't wait for "editor-selected" event in browser_styleeditor_fetch-from-cache.js as it may have already been emitted. r=bgrins, a=test-only
☠☠ backed out by 4f36d5aff5cf ☠ ☠
authorSami Jaktholm <sjakthol@outlook.com>
Sat, 11 Apr 2015 10:34:31 +0300
changeset 258464 d1e3ce033c7a
parent 258463 b2d1be38dab1
child 258465 87f3453f6cc0
push id4676
push userryanvm@gmail.com
push date2015-04-15 02:06 +0000
treeherdermozilla-beta@91df81e2edac [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins, test-only
bugs1150005
milestone38.0
Bug 1150005 - Don't wait for "editor-selected" event in browser_styleeditor_fetch-from-cache.js as it may have already been emitted. r=bgrins, a=test-only
browser/devtools/styleeditor/test/browser_styleeditor_fetch-from-cache.js
--- a/browser/devtools/styleeditor/test/browser_styleeditor_fetch-from-cache.js
+++ b/browser/devtools/styleeditor/test/browser_styleeditor_fetch-from-cache.js
@@ -18,18 +18,18 @@ add_task(function() {
   let netmonitor = toolbox.getPanel("netmonitor");
 
   info("Navigating to test page");
   yield navigateTo(TEST_URL);
 
   info("Opening Style Editor");
   let styleeditor = yield toolbox.selectTool("styleeditor");
 
-  info("Waiting for an editor to be selected.");
-  yield styleeditor.UI.once("editor-selected");
+  info("Waiting for the source to be loaded.");
+  yield styleeditor.UI.editors[0].getSourceEditor();
 
   info("Checking Netmonitor contents.");
   let requestsForCss = 0;
   for (let item of netmonitor._view.RequestsMenu) {
     if (item.attachment.url.endsWith("doc_uncached.css")) {
       requestsForCss++;
     }
   }