mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1894205: Update tests within devtools/ to work with https-first enabled, r=jdescottes,devtools-reviewers
Differential Revision: https://phabricator.services.mozilla.com/D208990
This commit is contained in:
parent
dbb58806f6
commit
95ac4f2f0b
@ -15,7 +15,7 @@ Services.scriptloader.loadSubScript(
|
||||
add_task(async function () {
|
||||
Services.prefs.setBoolPref("devtools.webconsole.filter.net", true);
|
||||
|
||||
const { monitor, toolbox } = await initNetMonitor(SIMPLE_URL, {
|
||||
const { monitor, toolbox } = await initNetMonitor(HTTPS_SIMPLE_URL, {
|
||||
requestCount: 1,
|
||||
});
|
||||
info("Starting test... ");
|
||||
@ -43,7 +43,7 @@ add_task(async function () {
|
||||
await onWebConsole;
|
||||
|
||||
info("Wait for request");
|
||||
await waitFor(() => findMessageByType(hud, SIMPLE_URL, ".network"));
|
||||
await waitFor(() => findMessageByType(hud, HTTPS_SIMPLE_URL, ".network"));
|
||||
|
||||
info("Switch back the the netmonitor");
|
||||
await monitor.toolbox.selectTool("netmonitor");
|
||||
@ -63,7 +63,9 @@ add_task(async function () {
|
||||
|
||||
info("Wait for network request to show and that its disabled");
|
||||
|
||||
await waitFor(() => findMessageByType(hud, SIMPLE_URL, ".network.disabled"));
|
||||
await waitFor(() =>
|
||||
findMessageByType(hud, HTTPS_SIMPLE_URL, ".network.disabled")
|
||||
);
|
||||
|
||||
// Switch back to the netmonitor.
|
||||
await monitor.toolbox.selectTool("netmonitor");
|
||||
|
@ -12,6 +12,8 @@ add_task(async function () {
|
||||
// definately above the slow threshold set here.
|
||||
const SLOW_THRESHOLD = 450;
|
||||
|
||||
await pushPref("dom.security.https_first", false);
|
||||
|
||||
Services.prefs.setIntPref("devtools.netmonitor.audits.slow", SLOW_THRESHOLD);
|
||||
|
||||
const { monitor } = await initNetMonitor(SLOW_REQUESTS_URL, {
|
||||
|
Loading…
Reference in New Issue
Block a user