Skip to content

Commit cf49f06

Browse files
domenicmoz-wptsync-bot
authored andcommitted
Bug 1760181 [wpt PR 33182] - App history API to navigation API rename (2/n), a=testonly
Automatic update from web-platform-tests App history API to navigation API rename (2/n) See WICG/navigation-api#83 and WICG/navigation-api#203 for context. This CL renames all test files, with occasional minor updates to their contents. Notably this includes web platform test files. While doing so, some of the web platform tests were slightly moved around to give a clearer directory structure. This revealed some confusing duplication (and in some cases mislocated tests) around state updates, which is tracked in https://crbug.com/1304446. Bug: 1300246 Change-Id: Ieef0329e7a309c242b5391f050878bc182487905 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3510194 Reviewed-by: Nate Chapin <[email protected]> Reviewed-by: Mason Freed <[email protected]> Commit-Queue: Domenic Denicola <[email protected]> Cr-Commit-Position: refs/heads/main@{#980702} -- wpt-commits: 4e628b145e52797f421c7f832d13014387aac961 wpt-pr: 33182
1 parent 439652b commit cf49f06

File tree

311 files changed

+21
-21
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

311 files changed

+21
-21
lines changed

testing/web-platform/tests/html/browsers/browsing-the-web/overlapping-navigations-and-traversals/tentative/README.md

Lines changed: 3 additions & 3 deletions

testing/web-platform/tests/lint.ignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,6 @@ PARSE-FAILED: custom-elements/xhtml-crash.xhtml
139139
SET TIMEOUT: *-manual.*
140140
SET TIMEOUT: annotation-model/scripts/ajv.min.js
141141
SET TIMEOUT: apng/animated-png-timeout.html
142-
SET TIMEOUT: app-history/app-history-entry/entries-after-bfcache-in-iframe.html
143142
SET TIMEOUT: cookies/resources/testharness-helpers.js
144143
SET TIMEOUT: common/reftest-wait.js
145144
SET TIMEOUT: conformance-checkers/*
@@ -186,6 +185,7 @@ SET TIMEOUT: measure-memory/*
186185
SET TIMEOUT: media-source/mediasource-util.js
187186
SET TIMEOUT: media-source/URL-createObjectURL-revoke.html
188187
SET TIMEOUT: mixed-content/generic/sanity-checker.js
188+
SET TIMEOUT: navigation-api/navigation-history-entry/entries-after-bfcache-in-iframe.html
189189
SET TIMEOUT: navigation-timing/*
190190
SET TIMEOUT: old-tests/submission/Microsoft/history/history_000.htm
191191
SET TIMEOUT: paint-timing/resources/subframe-painting.html

testing/web-platform/tests/app-history/focus-reset/autofocus.html renamed to testing/web-platform/tests/navigation-api/focus-reset/autofocus.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
<script type="module">
88
promise_setup(async () => {
99
// Get the overall autofocus processed flag to flip to true, so that
10-
// we only test the app history-specific stuff.
10+
// we only test the navigation API-specific stuff.
1111
await new Promise(r => requestAnimationFrame(() => requestAnimationFrame(r)));
12-
assert_equals(document.activeElement, initialAutofocusTarget, "Non-app history autofocus was processed");
12+
assert_equals(document.activeElement, initialAutofocusTarget, "Non-navigation API autofocus was processed");
1313
initialAutofocusTarget.remove();
1414
assert_equals(document.activeElement, document.body);
1515
});

testing/web-platform/tests/app-history/navigate-event/navigate-anchor-same-origin-cross-document.html renamed to testing/web-platform/tests/navigation-api/navigate-event/navigate-anchor-same-origin-cross-document.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
assert_false(e.hashChange);
1313
assert_equals(e.formData, null);
1414
assert_equals(new URL(e.destination.url).pathname,
15-
"/app-history/navigate-event/foo.html");
15+
"/navigation-api/navigate-event/foo.html");
1616
assert_false(e.destination.sameDocument);
1717
assert_equals(e.destination.key, null);
1818
assert_equals(e.destination.id, null);

testing/web-platform/tests/app-history/navigate-event/navigate-anchor-with-target.html renamed to testing/web-platform/tests/navigation-api/navigate-event/navigate-anchor-with-target.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
assert_false(e.hashChange);
1818
assert_equals(e.formData, null);
1919
assert_equals(new URL(e.destination.url).pathname,
20-
"/app-history/navigate-event/foo.html");
20+
"/navigation-api/navigate-event/foo.html");
2121
assert_false(e.destination.sameDocument);
2222
assert_equals(e.destination.key, null);
2323
assert_equals(e.destination.id, null);

testing/web-platform/tests/app-history/navigate-event/navigate-form-with-target.html renamed to testing/web-platform/tests/navigation-api/navigate-event/navigate-form-with-target.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
assert_false(e.userInitiated);
1616
assert_false(e.hashChange);
1717
assert_equals(new URL(e.destination.url).pathname,
18-
"/app-history/navigate-event/foo.html");
18+
"/navigation-api/navigate-event/foo.html");
1919
assert_false(e.destination.sameDocument);
2020
assert_equals(e.destination.key, null);
2121
assert_equals(e.destination.id, null);

testing/web-platform/tests/app-history/app-history-entry/no-referrer-from-meta-url-censored.html renamed to testing/web-platform/tests/navigation-api/navigation-history-entry/no-referrer-from-meta-url-censored.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
assert_equals(i.contentWindow.navigation.entries().length, 3);
2626
assert_equals(i.contentWindow.navigation.currentEntry.index, 1);
2727
assert_equals(new URL(i.contentWindow.navigation.entries()[0].url).pathname,
28-
"/app-history/app-history-entry/resources/no-referrer-meta.html");
28+
"/navigation-api/navigation-history-entry/resources/no-referrer-meta.html");
2929
assert_equals(new URL(i.contentWindow.navigation.entries()[1].url).pathname,
30-
"/app-history/app-history-entry/resources/no-referrer-meta.html");
30+
"/navigation-api/navigation-history-entry/resources/no-referrer-meta.html");
3131
}, "The url of a document with no-referrer referrer meta tag is censored in AppHistoryEntry");
3232
</script>

testing/web-platform/tests/app-history/app-history-entry/no-referrer-url-censored.html renamed to testing/web-platform/tests/navigation-api/navigation-history-entry/no-referrer-url-censored.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@
2525
assert_equals(i.contentWindow.navigation.entries().length, 3);
2626
assert_equals(i.contentWindow.navigation.currentEntry.index, 1);
2727
assert_equals(new URL(i.contentWindow.navigation.entries()[0].url).pathname,
28-
"/app-history/app-history-entry/resources/no-referrer.html");
28+
"/navigation-api/navigation-history-entry/resources/no-referrer.html");
2929
assert_equals(new URL(i.contentWindow.navigation.entries()[1].url).pathname,
30-
"/app-history/app-history-entry/resources/no-referrer.html");
30+
"/navigation-api/navigation-history-entry/resources/no-referrer.html");
3131
}, "The url of a document with no-referrer referrer policy is censored in AppHistoryEntry");
3232
</script>

testing/web-platform/tests/app-history/ordering-and-transition/README.md renamed to testing/web-platform/tests/navigation-api/ordering-and-transition/README.md

Lines changed: 2 additions & 2 deletions
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,5 +43,5 @@
4343
assert_equals(back_state.statevar, "state");
4444
});
4545
}, 0);
46-
}, "appHistoryEntry.getState() behavior after navigating away and back via a fragment change");
46+
}, "appHistoryEntry.getState() behavior after navigating away using a fragment change, then back");
4747
</script>
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,5 +49,5 @@
4949
});
5050
})();
5151
}, 0);
52-
}, "appHistoryEntry.getState() behavior after navigating away and back");
52+
}, "appHistoryEntry.getState() behavior after navigating away using the navigation API, then back");
5353
</script>

testing/web-platform/tests/app-history/navigate/state/updateCurrent/basic.html renamed to testing/web-platform/tests/navigation-api/updateCurrentEntry-method/basic.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
navigation.onnavigatesuccess = t.unreached_func("navigatesuccess must not fire");
99
navigation.onnavigateerror = t.unreached_func("navigateerror must not fire");
1010

11-
assert_equals(navigation.currentEntry.getState(), undefined, "App history state starts out as undefined");
11+
assert_equals(navigation.currentEntry.getState(), undefined, "Navigation API state starts out as undefined");
1212
assert_equals(history.state, null, "history.state starts out as null");
1313

1414
const newState = { key: "value" };

0 commit comments

Comments
 (0)