Bug 1465023 [wpt PR 11220] - [Fetch] Fix tests for isHistoryNavigation, a=testonly

Automatic update from web-platform-testsFetch: fix tests for isHistoryNavigation

Follow-up for 8f805ef0b6a3ddb06c0266cc56557d05e36f3a3d.
--

wpt-commits: 572605e1e91df6eb2cd5737b74f20f52feb6cb12
wpt-pr: 11220
This commit is contained in:
Yutaka Hirano 2018-06-06 16:26:12 +00:00 коммит произвёл James Graham
Родитель ee32bee512
Коммит ebcb1a7dc8
3 изменённых файлов: 8 добавлений и 8 удалений

Просмотреть файл

@ -559193,7 +559193,7 @@
"testharness"
],
"fetch/api/request/request-reset-attributes.https.html": [
"1ce3d577ce907b40b7bd23e66db91e77b5557c5a",
"868a8a8c31b300795f7ce594037dab4b2e235f48",
"testharness"
],
"fetch/api/request/request-structure.html": [
@ -602065,7 +602065,7 @@
"testharness"
],
"service-workers/service-worker/fetch-event.https.html": [
"6f437b4bce24bf25343dcfd90018dfe934ff3d8f",
"dfd8525f82292cc3728cc3b1afb2a14e19ef4b43",
"testharness"
],
"service-workers/service-worker/fetch-frame-resource.https.html": [

Просмотреть файл

@ -39,7 +39,7 @@ promise_test(async (t) => {
}, 'Request.isReloadNavigation is reset with non-empty RequestInit');
promise_test(async (t) => {
const scope = '../resources/blank.html?name=isHistoryNavigation';
const scope = 'resources/hello.html?name=isHistoryNavigation';
let frame;
let reg;
@ -48,13 +48,13 @@ promise_test(async (t) => {
await wait_for_state(t, reg.installing, 'activated');
frame = await with_iframe(scope);
assert_equals(frame.contentDocument.body.textContent,
'original: false, stored: false');
'old: false, new: false');
// Use step_timeout(0) to ensure the history entry is created for Blink
// and WebKit. See https://bugs.webkit.org/show_bug.cgi?id=42861.
await wait(0);
await new Promise((resolve) => {
frame.onload = resolve;
frame.src = '../resources/blank.html?ignore';
frame.src = 'resources/hello.html?ignore';
});
await wait(0);
await new Promise((resolve) => {
@ -62,7 +62,7 @@ promise_test(async (t) => {
frame.contentWindow.history.go(-1);
});
assert_equals(frame.contentDocument.body.textContent,
'original: true, stored: true');
'old: true, new: false');
} finally {
if (frame) {
frame.remove();
@ -71,7 +71,7 @@ promise_test(async (t) => {
await reg.unregister();
}
}
}, 'Request.IsHistoryNavigation should persist.');
}, 'Request.isHistoryNavigation is reset with non-empty RequestInit');
promise_test(async (t) => {
const scope = 'resources/hello.txt?name=mode';

Просмотреть файл

@ -1074,7 +1074,7 @@ promise_test(async (t) => {
await reg.unregister();
}
}
}, 'FetchEvent#request.isReloadNavigation is true (POST + history.go(-1))');
}, 'FetchEvent#request.isHistoryNavigation is true (POST + history.go(-1))');
</script>
</body>