summaryrefslogtreecommitdiffstats
path: root/devtools/client/netmonitor/src
diff options
context:
space:
mode:
Diffstat (limited to 'devtools/client/netmonitor/src')
-rw-r--r--devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js10
-rw-r--r--devtools/client/netmonitor/src/har/test/browser_net_har_import.js2
-rw-r--r--devtools/client/netmonitor/src/har/test/head.js2
3 files changed, 7 insertions, 7 deletions
diff --git a/devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js b/devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js
index 2faaf01b73..08dbfbf068 100644
--- a/devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js
+++ b/devtools/client/netmonitor/src/har/test/browser_net_har_copy_all_as_har.js
@@ -7,7 +7,7 @@
* Basic tests for exporting Network panel content into HAR format.
*/
-const EXPECTED_REQUEST_HEADER_COUNT = 9;
+const EXPECTED_REQUEST_HEADER_COUNT = 13;
const EXPECTED_RESPONSE_HEADER_COUNT = 6;
add_task(async function () {
@@ -15,7 +15,7 @@ add_task(async function () {
// (bug 1352274). TCP Fast Open is not present on all platforms therefore the
// number of response headers will vary depending on the platform.
await pushPref("network.tcp.tcp_fastopen_enable", false);
- const { tab, monitor, toolbox } = await initNetMonitor(SIMPLE_URL, {
+ const { tab, monitor, toolbox } = await initNetMonitor(HTTPS_SIMPLE_URL, {
requestCount: 1,
});
@@ -45,7 +45,7 @@ async function testSimpleReload({ tab, monitor, toolbox }) {
const page = har.log.pages[0];
- is(page.title, SIMPLE_URL, "There must be some page title");
+ is(page.title, HTTPS_SIMPLE_URL, "There must be some page title");
ok("onContentLoad" in page.pageTimings, "There must be onContentLoad time");
ok("onLoad" in page.pageTimings, "There must be onLoad time");
@@ -98,7 +98,7 @@ async function testManyReloads({ tab, monitor, toolbox }) {
if (entry) {
ok(entry, "Found the cancelled request");
is(entry.request.method, "GET", "Method is set");
- is(entry.request.url, SIMPLE_URL, "URL is set");
+ is(entry.request.url, HTTPS_SIMPLE_URL, "URL is set");
// We always get the following headers:
// "Host", "User-agent", "Accept", "Accept-Language", "Accept-Encoding", "Connection"
// but are missing the three last headers:
@@ -173,7 +173,7 @@ function assertNavigationRequestEntry(entry) {
info("Assert that the entry relates to the navigation request");
Assert.greater(entry.time, 0, "Check the total time");
is(entry.request.method, "GET", "Check the method");
- is(entry.request.url, SIMPLE_URL, "Check the URL");
+ is(entry.request.url, HTTPS_SIMPLE_URL, "Check the URL");
is(
entry.request.headers.length,
EXPECTED_REQUEST_HEADER_COUNT,
diff --git a/devtools/client/netmonitor/src/har/test/browser_net_har_import.js b/devtools/client/netmonitor/src/har/test/browser_net_har_import.js
index 44ae3a8e16..9d66674bd3 100644
--- a/devtools/client/netmonitor/src/har/test/browser_net_har_import.js
+++ b/devtools/client/netmonitor/src/har/test/browser_net_har_import.js
@@ -65,7 +65,7 @@ add_task(async () => {
);
is(
har2.log.entries[1]._securityState,
- "insecure",
+ "secure",
"There must be expected security state"
);
is(har2.log.entries[2].response.status, 304, "There must be expected status");
diff --git a/devtools/client/netmonitor/src/har/test/head.js b/devtools/client/netmonitor/src/har/test/head.js
index b41ea580fd..abf34c1ffb 100644
--- a/devtools/client/netmonitor/src/har/test/head.js
+++ b/devtools/client/netmonitor/src/har/test/head.js
@@ -13,7 +13,7 @@ Services.scriptloader.loadSubScript(netMonitorHead, this);
// Directory with HAR related test files.
const HAR_EXAMPLE_URL =
- "http://example.com/browser/devtools/client/netmonitor/src/har/test/";
+ "https://example.com/browser/devtools/client/netmonitor/src/har/test/";
/**
* Trigger a "copy all as har" from the context menu of the requests list.