summaryrefslogtreecommitdiffstats
path: root/remote/cdp/test/browser/network/browser_setCacheDisabled.js
diff options
context:
space:
mode:
Diffstat (limited to 'remote/cdp/test/browser/network/browser_setCacheDisabled.js')
-rw-r--r--remote/cdp/test/browser/network/browser_setCacheDisabled.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/remote/cdp/test/browser/network/browser_setCacheDisabled.js b/remote/cdp/test/browser/network/browser_setCacheDisabled.js
index 4af9f0fc07..a7272bfc54 100644
--- a/remote/cdp/test/browser/network/browser_setCacheDisabled.js
+++ b/remote/cdp/test/browser/network/browser_setCacheDisabled.js
@@ -18,7 +18,7 @@ add_task(async function cacheEnabledAfterDisabled({ client }) {
await waitForLoadFlags();
});
-add_task(async function cacheEnabledByDefault({ Network }) {
+add_task(async function cacheEnabledByDefault() {
await watchLoadFlags(LOAD_NORMAL, TEST_PAGE);
await loadURL(TEST_PAGE);
await waitForLoadFlags();
@@ -67,7 +67,7 @@ function watchLoadFlags(flags, url) {
);
},
- onStateChange(webProgress, request, flags, status) {
+ onStateChange(webProgress, request, flags) {
// We are checking requests - if there isn't one, ignore it.
if (!request) {
return;
@@ -99,8 +99,9 @@ function watchLoadFlags(flags, url) {
if (request.name == this.url && (flags & stopFlags) == stopFlags) {
this.docShell.removeProgressListener(this);
- ok(
- this.requestCount > 1,
+ Assert.greater(
+ this.requestCount,
+ 1,
this.url + " saw " + this.requestCount + " requests"
);
this.callback();