Bug 1575548 - Enable websockets in netmonitor's browser_net_ws-* tests to prevent them from failing on non-central branches. r=Honza DONTBUILD a=Aryx
authorSebastian Hengst <archaeopteryx@coole-files.de>
Mon, 26 Aug 2019 09:19:35 +0000
changeset 553551 714f6061c12c657c5d9b9a5f6be7127f07be90bb
parent 553550 dcd9ee807647b01a5bf493ad0c8e11cfb5c17e8b
child 553593 c75d6a0539eb4b2c7961f0c9782fcb364198c6b2
push id2165
push userffxbld-merge
push dateMon, 14 Oct 2019 16:30:58 +0000
treeherdermozilla-release@0eae18af659f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersHonza, Aryx
bugs1575548
milestone70.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 1575548 - Enable websockets in netmonitor's browser_net_ws-* tests to prevent them from failing on non-central branches. r=Honza DONTBUILD a=Aryx Differential Revision: https://phabricator.services.mozilla.com/D43298
devtools/client/netmonitor/test/browser_net_ws-basic.js
devtools/client/netmonitor/test/browser_net_ws-clear.js
devtools/client/netmonitor/test/browser_net_ws-filter-dropdown.js
--- a/devtools/client/netmonitor/test/browser_net_ws-basic.js
+++ b/devtools/client/netmonitor/test/browser_net_ws-basic.js
@@ -3,16 +3,20 @@
 
 "use strict";
 
 /**
  * Test that WS connection is established successfully and sent/received messages are correct.
  */
 
 add_task(async function() {
+  await SpecialPowers.pushPrefEnv({
+    set: [["devtools.netmonitor.features.webSockets", true]],
+  });
+
   const { tab, monitor } = await initNetMonitor(WS_PAGE_URL);
   info("Starting test... ");
 
   const { document, store, windowRequire } = monitor.panelWin;
   const Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
 
   store.dispatch(Actions.batchEnable(false));
 
--- a/devtools/client/netmonitor/test/browser_net_ws-clear.js
+++ b/devtools/client/netmonitor/test/browser_net_ws-clear.js
@@ -3,16 +3,20 @@
 
 "use strict";
 
 /**
  * Test that WS connection is established successfully and clearing messages works correctly.
  */
 
 add_task(async function() {
+  await SpecialPowers.pushPrefEnv({
+    set: [["devtools.netmonitor.features.webSockets", true]],
+  });
+
   const { tab, monitor } = await initNetMonitor(WS_PAGE_URL);
   info("Starting test... ");
 
   const { document, store, windowRequire } = monitor.panelWin;
   const Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
 
   store.dispatch(Actions.batchEnable(false));
 
--- a/devtools/client/netmonitor/test/browser_net_ws-filter-dropdown.js
+++ b/devtools/client/netmonitor/test/browser_net_ws-filter-dropdown.js
@@ -3,16 +3,20 @@
 
 "use strict";
 
 /**
  * Test that WS connection is established successfully and filtered messages using the dropdown menu are correct.
  */
 
 add_task(async function() {
+  await SpecialPowers.pushPrefEnv({
+    set: [["devtools.netmonitor.features.webSockets", true]],
+  });
+
   const { tab, monitor } = await initNetMonitor(WS_PAGE_URL);
   info("Starting test... ");
 
   const { document, store, windowRequire } = monitor.panelWin;
   const Actions = windowRequire("devtools/client/netmonitor/src/actions/index");
 
   store.dispatch(Actions.batchEnable(false));