Bug 1269102 - Part 4: browser_net_pane-toggle.js: wait for async update after opening the details pane r?ochameau draft
authorJarda Snajdr <jsnajdr@gmail.com>
Wed, 10 Aug 2016 14:17:16 +0200
changeset 401152 1ebfb35f6b14e8adf180c136bdd6060895380c18
parent 401151 e333b8f2b011130aeb1ede312dfcd1a5fc4e5c4f
child 401153 35c1bdf581d5cad6ccf238570890a7bfb22e2e55
push id26375
push userbmo:jsnajdr@gmail.com
push dateTue, 16 Aug 2016 12:39:57 +0000
reviewersochameau
bugs1269102
milestone51.0a1
Bug 1269102 - Part 4: browser_net_pane-toggle.js: wait for async update after opening the details pane r?ochameau MozReview-Commit-ID: Hm9S2nzWMLl
devtools/client/netmonitor/test/browser_net_pane-toggle.js
--- a/devtools/client/netmonitor/test/browser_net_pane-toggle.js
+++ b/devtools/client/netmonitor/test/browser_net_pane-toggle.js
@@ -41,16 +41,18 @@ add_task(function* () {
     "collapsed after the first request.");
   is(NetMonitorView.detailsPaneHidden, true,
     "The details pane should still be hidden after the first request.");
   is(RequestsMenu.selectedItem, null,
     "There should still be no selected item in the requests menu.");
 
   EventUtils.sendMouseEvent({ type: "mousedown" }, toggleButton);
 
+  yield monitor.panelWin.once(TAB_UPDATED);
+
   is(toggleButton.hasAttribute("disabled"), false,
     "The pane toggle button should still be enabled after being pressed.");
   is(toggleButton.classList.contains("pane-collapsed"), false,
     "The pane toggle button should now indicate that the details pane is " +
     "not collapsed anymore after being pressed.");
   is(NetMonitorView.detailsPaneHidden, false,
     "The details pane should not be hidden after toggle button was pressed.");
   isnot(RequestsMenu.selectedItem, null,