Bug 1258361 - Wait for second streaming response to display. r=vporof draft
authorJ. Ryan Stinnett <jryans@gmail.com>
Mon, 21 Mar 2016 08:56:00 -0500
changeset 342859 dcfaeab11395e829f79675952a008e4c094f575f
parent 342858 7c84456c49f4de2ff481d33f7cf9025d6293631c
child 516638 cca34e338b3f36d9c6b14e5d7524c472303fe57b
push id13474
push userbmo:jryans@gmail.com
push dateMon, 21 Mar 2016 13:56:35 +0000
reviewersvporof
bugs1258361
milestone48.0a1
Bug 1258361 - Wait for second streaming response to display. r=vporof MozReview-Commit-ID: LV9O4BOThw0
devtools/client/netmonitor/test/browser_net_streaming-response.js
--- a/devtools/client/netmonitor/test/browser_net_streaming-response.js
+++ b/devtools/client/netmonitor/test/browser_net_streaming-response.js
@@ -43,16 +43,17 @@ function test() {
 
     yield panelWin.once(panelWin.EVENTS.RESPONSE_BODY_DISPLAYED);
     let editor = yield NetMonitorView.editor("#response-content-textarea");
 
     testEditorContent(editor, REQUESTS[0]); // the hls-m3u8 part
 
     RequestsMenu.selectedIndex = 1;
     yield panelWin.once(panelWin.EVENTS.TAB_UPDATED);
+    yield panelWin.once(panelWin.EVENTS.RESPONSE_BODY_DISPLAYED);
 
     testEditorContent(editor, REQUESTS[1]); // the mpeg-dash part
 
     yield teardown(monitor);
     finish();
   });
 
   function testEditorContent(editor, [ fmt, textRe, mode ]) {