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 399946 71fd1536c4316a8ecf5217468ee2ca104719b05b
parent 399945 83442d6b7d15fa5404973db069cfcb9e621ccb56
child 399947 a579e58b2c173f4a596a1124444e2ee89dc5d411
push id26044
push userbmo:jsnajdr@gmail.com
push dateFri, 12 Aug 2016 12:16:07 +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
@@ -39,16 +39,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,