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 400584 9967b94f9ba10592532346f44eea19e076e59f11
parent 400583 affdd3f3c5014ffe3b9318ed6a021f4976a45376
child 400585 cce74e52a01e00ef2d191bbaed5a8bedcf47e282
push id26210
push userbmo:jsnajdr@gmail.com
push dateMon, 15 Aug 2016 08:03:56 +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,