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
authorSami Jaktholm <sjakthol@outlook.com>
Sat, 11 Apr 2015 10:34:31 +0300
changeset 238888 f29e1629564da6e8d992d1dc29b23e561b866932
parent 238887 0ca5366a72d49af7c3338b304668bdf1d2136ac6
child 238889 6f2c078e1be4cc15e41e644ed4a023f4956574ce
push id28576
push usercbook@mozilla.com
push dateTue, 14 Apr 2015 12:27:33 +0000
treeherdermozilla-central@bddebae866b4 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbgrins
bugs1150005
milestone40.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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
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
@@ -16,18 +16,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++;
     }
   }