blob: 0872337551290e0775d3e9741c09ec52d1231479 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
/* Any copyright is dedicated to the Public Domain.
* http://creativecommons.org/publicdomain/zero/1.0/ */
"use strict";
add_task(async function testReload({ client }) {
const { Page } = client;
await loadURL(toDataURL("halløj"));
info("Reloading document");
await Page.enable();
const loaded = Page.loadEventFired();
await Page.reload();
await loaded;
await SpecialPowers.spawn(gBrowser.selectedBrowser, [], () => {
ok(!content.docShell.isForceReloading, "Document is not force-reloaded");
});
});
add_task(async function testReloadIgnoreCache({ client }) {
const { Page } = client;
await loadURL(toDataURL("halløj"));
info("Force-reloading document");
await Page.enable();
const loaded = Page.loadEventFired();
await Page.reload({ ignoreCache: true });
await loaded;
await SpecialPowers.spawn(gBrowser.selectedBrowser, [], () => {
ok(content.docShell.isForceReloading, "Document is force-reloaded");
});
});
|