Bug 1223726 - Update tests; r=jdescottes
☠☠ backed out by 48400efc4958 ☠ ☠
authorJan Odvarko <odvarko@gmail.com>
Mon, 12 Mar 2018 10:59:21 +0100
changeset 407589 1a09e6c3c0a3c0109c32e49b164c7170fc3cfbe5
parent 407588 41da2897f549475c85639df00e984b987df8ef66
child 407590 61c9f8520dc85e95f39069c31c2e8833da03c12a
push id60962
push userjodvarko@mozilla.com
push dateMon, 12 Mar 2018 11:00:44 +0000
treeherderautoland@1a09e6c3c0a3 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjdescottes
bugs1223726
milestone60.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 1223726 - Update tests; r=jdescottes MozReview-Commit-ID: 6FR7W58WRg0
devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
--- a/devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
+++ b/devtools/client/styleeditor/test/browser_styleeditor_fetch-from-netmonitor.js
@@ -29,16 +29,20 @@ add_task(function* () {
   let styleeditor = yield toolbox.selectTool("styleeditor");
   let ui = styleeditor.UI;
 
   info("Waiting for the sources to be loaded.");
   yield ui.editors[0].getSourceEditor();
   yield ui.selectStyleSheet(ui.editors[1].styleSheet);
   yield ui.editors[1].getSourceEditor();
 
+  // Wait till there is 5 requests in Netmonitor store.
+  // (i.e. the Styleeditor panel performed one request).
+  yield waitUntil(() => getSortedRequests(store.getState()).length == 5);
+
   info("Checking Netmonitor contents.");
   let shortRequests = [];
   let longRequests = [];
   let hugeRequests = [];
   for (let item of getSortedRequests(store.getState())) {
     if (item.url.endsWith("doc_short_string.css")) {
       shortRequests.push(item);
     }