Skip to content

Commit a9024f5

Browse files
domenicmoz-wptsync-bot
authored andcommitted
Bug 1760217 [wpt PR 33184] - App history API to navigation API rename (3/n), a=testonly
Automatic update from web-platform-tests App history API to navigation API rename (3/n) See WICG/navigation-api#83 and WICG/navigation-api#203 for context. This CL is scoped mostly to the third_party/blink/renderer/core/app_history directory. That directory itself has been renamed from app_history to navigation_api. Its contents also follow the new naming. Notably, this includes changing all the IDL interface names and their backing classes, which has minor web-exposed implications. Code outside of that directory is mostly updated due to the change from blink::AppHistory to blink::NavigationApi. References to app history still exist in Blink outside of that directory, as well as within Chromium at large; those will be tackled in a future CL. This also finishes the process of updating the web platform tests, by both updating the actual test code for the interface renames, and updating various test descriptions and comments. Bug: 1300246 Change-Id: I244e5fbb5d7977e8d61edae1e59d7bbfb6bdc75c Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3522964 Reviewed-by: Nate Chapin <[email protected]> Commit-Queue: Domenic Denicola <[email protected]> Cr-Commit-Position: refs/heads/main@{#981804} -- wpt-commits: 3f00a909b6e15e281fe3dbbac376542465cc5232 wpt-pr: 33184
1 parent e12aae4 commit a9024f5

File tree

104 files changed

+120
-131
lines changed

Some content is hidden

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

104 files changed

+120
-131
lines changed

testing/web-platform/tests/navigation-api/README.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

testing/web-platform/tests/navigation-api/currententrychange-event/anchor-click.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
});
1515
a.click();
1616
assert_true(oncurrententrychange_called);
17-
}, "AppHistoryCurrentChangeEvent fires for link click");
17+
}, "currententrychange fires for link click");
1818
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/constructor.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@
44
<script>
55
test(() => {
66
assert_throws_js(TypeError, () => {
7-
new AppHistoryCurrentChangeEvent("currententrychange");
7+
new NavigationCurrentEntryChangeEvent("currententrychange");
88
});
99
}, "can't bypass required members by omitting the dictionary entirely");
1010

1111
test(() => {
1212
assert_throws_js(TypeError, () => {
13-
new AppHistoryCurrentChangeEvent("currententrychange", {
13+
new NavigationCurrentEntryChangeEvent("currententrychange", {
1414
navigationType: "push"
1515
});
1616
});
1717
}, "from is required");
1818

1919
test(() => {
20-
const event = new AppHistoryCurrentChangeEvent("currententrychange", {
20+
const event = new NavigationCurrentEntryChangeEvent("currententrychange", {
2121
navigationType: "replace",
2222
from: navigation.currentEntry
2323
});
@@ -26,7 +26,7 @@
2626
}, "all properties are reflected back");
2727

2828
test(t => {
29-
const event = new AppHistoryCurrentChangeEvent("currententrychange", { from: navigation.currentEntry });
29+
const event = new NavigationCurrentEntryChangeEvent("currententrychange", { from: navigation.currentEntry });
3030
assert_equals(event.navigationType, null);
3131
}, "defaults are as expected");
3232
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/history-back-same-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
assert_false(oncurrententrychange_called);
2121
await new Promise(resolve => window.onpopstate = resolve);
2222
assert_true(oncurrententrychange_called);
23-
}, "AppHistoryCurrentChangeEvent fires for history.back()");
23+
}, "currententrychange fires for history.back()");
2424
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/history-pushState.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
});
1313
history.pushState(1, "", "#1");
1414
assert_true(oncurrententrychange_called);
15-
}, "AppHistoryCurrentChangeEvent fires for history.pushState()");
15+
}, "currententrychange fires for history.pushState()");
1616
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/history-replaceState.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
});
1515
history.replaceState(1, "", "#1");
1616
assert_true(oncurrententrychange_called);
17-
}, "AppHistoryCurrentChangeEvent fires for history.replaceState()");
17+
}, "currententrychange fires for history.replaceState()");
1818
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/location-api.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
});
1515
location.hash = "#foo";
1616
assert_true(oncurrententrychange_called);
17-
}, "AppHistoryCurrentChangeEvent fires for location API navigations");
17+
}, "currententrychange fires for location API navigations");
1818
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigate-from-initial-about-blank-same-doc-popup.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,5 @@
1111
assert_equals(w.location.href, "about:blank#2");
1212

1313
await new Promise(resolve => t.step_timeout(resolve, 10));
14-
}, "AppHistoryCurrentChangeEvent does not fire when navigating away from the initial about:blank (popup window)");
14+
}, "currententrychange does not fire when navigating away from the initial about:blank (popup window)");
1515
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigate-from-initial-about-blank-same-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
i.contentWindow.location.href = "about:blank#1";
99
i.contentWindow.location.href = "about:blank#2";
1010
await new Promise(resolve => t.step_timeout(resolve, 10));
11-
}, "AppHistoryCurrentChangeEvent does not fire when navigating away from the initial about:blank");
11+
}, "currententrychange does not fire when navigating away from the initial about:blank");
1212
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigate-from-initial-about-blank.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77
i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire");
88
i.contentWindow.navigation.navigate("/common/blank.html");
99
await new Promise(resolve => t.step_timeout(resolve, 10));
10-
}, "AppHistoryCurrentChangeEvent does not fire when navigating away from the initial about:blank");
10+
}, "currententrychange does not fire when navigating away from the initial about:blank");
1111
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-back-forward-cross-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations");
1717
i.contentWindow.navigation.forward();
1818
await new Promise(resolve => i.onload = resolve);
19-
}, "AppHistoryCurrentChangeEvent does not fire for cross-document navigation.back() and navigation.forward()");
19+
}, "currententrychange does not fire for cross-document navigation.back() and navigation.forward()");
2020
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-back-forward-same-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
assert_false(oncurrententrychange_forward_called);
3737
await forward_result.committed.then(() => forward_committed = true);
3838
assert_true(oncurrententrychange_forward_called);
39-
}, "AppHistoryCurrentChangeEvent fires for navigation.back() and navigation.forward()");
39+
}, "currententrychange fires for same-document navigation.back() and navigation.forward()");
4040
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-cross-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations");
99
i.contentWindow.navigation.navigate("/common/blank.html?1");
1010
await new Promise(resolve => i.onload = resolve);
11-
}, "AppHistoryCurrentChangeEvent does not fire for cross-document navigation.navigate()");
11+
}, "currententrychange does not fire for cross-document navigation.navigate()");
1212
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-preventDefault.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire");
77
navigation.onnavigate = e => e.preventDefault();
88
await promise_rejects_dom(t, "AbortError", navigation.navigate("#foo").committed);
9-
}, "AppHistoryCurrentChangeEvent does not fire when onnavigate preventDefault() is called");
9+
}, "currententrychange does not fire when onnavigate preventDefault() is called");
1010
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-cross-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations");
99
i.contentWindow.navigation.navigate("/common/blank.html?1", { replace: true });
1010
await new Promise(resolve => i.onload = resolve);
11-
}, "AppHistoryCurrentChangeEvent does not fire for cross-document navigation.navigate() with replace");
11+
}, "currententrychange does not fire for cross-document navigation.navigate() with replace");
1212
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-same-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
let result = navigation.navigate("#foo", { replace: true });
2020
assert_true(oncurrententrychange_called);
2121
await result.committed;
22-
}, "AppHistoryCurrentChangeEvent fires for navigation.navigate() with replace");
22+
}, "currententrychange fires for navigation.navigate() with replace");
2323
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-replace-transitionWhile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
let result = i.contentWindow.navigation.navigate("/common/blank.html?1", { replace: true });
2020
assert_true(oncurrententrychange_called);
2121
await result.committed;
22-
}, "AppHistoryCurrentChangeEvent fires for navigation.navigate() with replace intercepted by transitionWhile");
22+
}, "currententrychange fires for navigation.navigate() with replace intercepted by transitionWhile()");
2323
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-same-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
let result = navigation.navigate("#foo");
1818
assert_true(oncurrententrychange_called);
1919
await result.committed;
20-
}, "AppHistoryCurrentChangeEvent fires for navigation.navigate()");
20+
}, "currententrychange fires for navigation.navigate()");
2121
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-navigate-transitionWhile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
let result = i.contentWindow.navigation.navigate("/common/blank.html?1");
1818
assert_true(oncurrententrychange_called);
1919
await result.committed;
20-
}, "AppHistoryCurrentChangeEvent fires for navigation.navigate() intercepted by transitionWhile");
20+
}, "currententrychange fires for navigation.navigate() intercepted by transitionWhile()");
2121
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-reload-cross-doc.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
i.contentWindow.navigation.oncurrententrychange = t.unreached_func("currententrychange should not fire for cross-document navigations");
99
i.contentWindow.navigation.reload();
1010
await new Promise(resolve => i.onload = resolve);
11-
}, "AppHistoryCurrentChangeEvent does not fire for cross-document navigation.reload()");
11+
}, "currententrychange does not fire for cross-document navigation.reload()");
1212
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-reload-transitionWhile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
let result = i.contentWindow.navigation.reload();
1818
assert_true(oncurrententrychange_called);
1919
await result.committed;
20-
}, "AppHistoryCurrentChangeEvent fires for navigation.reload() intercepted by transitionWhile");
20+
}, "currententrychange fires for navigation.reload() intercepted by transitionWhile()");
2121
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/navigation-updateCurrentEntry.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@
1616
// "Updating" the state to the current state should still fire currententrychange.
1717
navigation.updateCurrentEntry({ state: navigation.currentEntry.getState() });
1818
assert_equals(oncurrententrychange_count, 2);
19-
}, "AppHistoryCurrentChangeEvent fires for navigation.updateCurrentEntry()");
19+
}, "currententrychange fires for navigation.updateCurrentEntry()");
2020
</script>

testing/web-platform/tests/navigation-api/currententrychange-event/properties.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
<script>
55
async_test(t => {
66
navigation.oncurrententrychange = t.step_func_done(e => {
7-
assert_equals(e.constructor, AppHistoryCurrentChangeEvent);
7+
assert_equals(e.constructor, NavigationCurrentEntryChangeEvent);
88
assert_false(e.bubbles);
99
assert_false(e.cancelable);
1010
assert_true(e.isTrusted);
1111
});
1212
location.href = "#1";
13-
}, "AppHistoryCurrentChangeEvent's properties");
13+
}, "NavigationCurrentEntryChangeEvent's properties");
1414
</script>

testing/web-platform/tests/navigation-api/navigate-event/event-constructor.html

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
<script>
55
test(() => {
66
assert_throws_js(TypeError, () => {
7-
new AppHistoryNavigateEvent("navigate");
7+
new NavigateEvent("navigate");
88
});
99
}, "can't bypass required members by omitting the dictionary entirely");
1010

1111
test(() => {
1212
assert_throws_js(TypeError, () => {
13-
new AppHistoryNavigateEvent("navigate", {
13+
new NavigateEvent("navigate", {
1414
navigationType: "push",
1515
canTransition: false,
1616
userInitiated: false,
@@ -23,10 +23,10 @@
2323
}, "destination is required");
2424

2525
async_test(t => {
26-
// We need to grab an AppHistoryDestination.
26+
// We need to grab an NavigationDestination.
2727
navigation.onnavigate = t.step_func_done(e => {
2828
assert_throws_js(TypeError, () => {
29-
new AppHistoryNavigateEvent("navigate", {
29+
new NavigateEvent("navigate", {
3030
navigationType: "push",
3131
destination: e.destination,
3232
canTransition: false,
@@ -41,13 +41,13 @@
4141
}, "signal is required");
4242

4343
async_test(t => {
44-
// We need to grab an AppHistoryDestination.
44+
// We need to grab an NavigationDestination.
4545
navigation.onnavigate = t.step_func_done(e => {
4646
const info = { some: "object with identity" };
4747
const formData = new FormData();
4848
const signal = (new AbortController()).signal;
4949

50-
const event = new AppHistoryNavigateEvent("navigate", {
50+
const event = new NavigateEvent("navigate", {
5151
navigationType: "replace",
5252
destination: e.destination,
5353
canTransition: true,
@@ -71,9 +71,9 @@
7171
}, "all properties are reflected back");
7272

7373
async_test(t => {
74-
// We need to grab an AppHistoryDestination.
74+
// We need to grab an NavigationDestination.
7575
navigation.onnavigate = t.step_func_done(e => {
76-
const event = new AppHistoryNavigateEvent("navigate", {
76+
const event = new NavigateEvent("navigate", {
7777
destination: e.destination,
7878
signal: (new AbortController()).signal
7979
});

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-detach-in-onnavigate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,5 @@
1717
await promise_rejects_dom(t, 'AbortError', iframe_constructor, i.contentWindow.navigation.navigate("#1").committed);
1818
assert_true(abort_signal.aborted);
1919
assert_true(onabort_called);
20-
}, "window detach inside AppHistoryNavigateEvent signals AppHistoryNavigateEvent.signal");
20+
}, "window detach inside a navigate event signals event.signal");
2121
</script>

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-preventDefault.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
await promise_rejects_dom(t, 'AbortError', navigation.navigate("?1").committed);
1616
assert_true(abort_signal.aborted);
1717
assert_array_equals(events, ["onabort", "onnavigateerror"]);
18-
}, "AppHistoryNavigateEvent.preventDefault signals AppHistoryNavigateEvent.signal");
18+
}, "event.preventDefault() signals event.signal");
1919
</script>

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-transitionWhile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
await navigation.navigate("?1").finished;
1515
assert_false(abort_signal.aborted);
1616
assert_false(onabort_called);
17-
}, "AppHistoryNavigateEvent's transitionWhile() does not signal AppHistoryNavigateEvent's signal");
17+
}, "event.transitionWhile() does not signal event.signal");
1818
</script>

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-window-stop-after-transitionWhile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,5 @@
3636
t.step_timeout(t.step_func_done(() => {}), 5);
3737
});
3838
});
39-
}, "window.stop() cancels AppHistoryNavigateEvent's transitionWhile() and signals AppHistoryNavigateEvent's signal");
39+
}, "window.stop() cancels the navigate event's transitionWhile() and signals event.signal");
4040
</script>

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-window-stop-in-onnavigate.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@
2020
assert_true(onabort_called);
2121
assert_true(canceled_in_second_handler);
2222
});
23-
}, "window.stop() signals AppHistoryNavigateEvent.signal inside a navigate event handler");
23+
}, "window.stop() signals event.signal inside a navigate event handler");
2424
</script>

testing/web-platform/tests/navigation-api/navigate-event/signal-abort-window-stop.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
// didn't fire on a microtask.
2020
t.step_timeout(t.step_func_done(() => {}), 0);
2121
});
22-
}, "window.stop() signals AppHistoryNavigateEvent.signal");
22+
}, "window.stop() signals event.signal");
2323
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-after-dispatch.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,5 @@
1212
});
1313

1414
location.href = "#1";
15-
}, "AppHistoryNavigateEvent's transitionWhile() throws if used after the dispatch phase");
15+
}, "event.transitionWhile() throws if used after the dispatch phase");
1616
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-canceled-event.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313

1414
location.href = "#1";
1515
assert_true(assertionHappened);
16-
}, "AppHistoryNavigateEvent's transitionWhile() throws if used on a canceled event");
16+
}, "event.transitionWhile() throws if used on a canceled event");
1717
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-cross-document-same-origin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
});
1616

1717
window.onload = t.step_func(() => location.href = target_url);
18-
}, "AppHistoryNavigateEvent's transitionWhile() intercepts a same-origin cross-document navigation");
18+
}, "event.transitionWhile() intercepts a same-origin cross-document navigation");
1919
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-cross-origin.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,5 +14,5 @@
1414
});
1515

1616
window.onload = t.step_func(() => location.href = get_host_info().HTTPS_REMOTE_ORIGIN);
17-
}, "AppHistoryNavigateEvent's transitionWhile() should throw if called for a cross origin navigation");
17+
}, "event.transitionWhile() should throw if called for a cross origin navigation");
1818
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-detach.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313

1414
i.contentWindow.location.href = "#1";
1515
});
16-
}, "AppHistoryNavigateEvent's transitionWhile() throws if used on an event from a detached iframe");
16+
}, "event.transitionWhile() throws if used on an event from a detached iframe");
1717
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-history-pushState.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
assert_equals(location.hash, "#1");
2020
assert_equals(history.state, "update");
2121
assert_equals(history.length, start_length + 1);
22-
}, "AppHistoryNavigateEvent's transitionWhile() should proceed if the given promise resolves");
22+
}, "event.transitionWhile() should proceed if the given promise resolves");
2323
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-history-replaceState.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@
1919
assert_equals(location.hash, "#1");
2020
assert_equals(history.state, "update");
2121
assert_equals(history.length, start_length);
22-
}, "AppHistoryNavigateEvent's transitionWhile() should proceed if the given promise resolves");
22+
}, "event.transitionWhile() should proceed if the given promise resolves");
2323
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-multiple-times-reject.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
}));
3232
assert_true(onnavigateerror_called);
3333
assert_true(caught_rejection);
34-
}, "AppHistoryNavigateEvent's transitionWhile() is called multiple times and one of the promises rejects");
34+
}, "event.transitionWhile() is called multiple times and one of the promises rejects");
3535
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-multiple-times.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,5 +37,5 @@
3737
assert_true(p1_resolved);
3838
assert_true(p2_resolved);
3939
assert_true(p3_resolved);
40-
}, "navigation.navigate() returns a finished promise that awaits all promises if AppHistoryNavigateEvent's transitionWhile() is called multiple times");
40+
}, "navigation.navigate() returns a finished promise that awaits all promises if event.transitionWhile() is called multiple times");
4141
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-navigation-back.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
}));
1616
});
1717
}, 0);
18-
}, "AppHistoryNavigateEvent's transitionWhile() can intercept navigation.back()");
18+
}, "event.transitionWhile() can intercept navigation.back()");
1919
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-on-synthetic-event.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
<script src="/resources/testharnessreport.js"></script>
44
<script>
55
async_test(t => {
6-
// We need to grab an AppHistoryDestination to construct the event.
6+
// We need to grab an NavigationDestination to construct the event.
77
navigation.onnavigate = t.step_func_done(e => {
8-
const event = new AppHistoryNavigateEvent("navigate", {
8+
const event = new NavigateEvent("navigate", {
99
destination: e.destination,
1010
signal: (new AbortController()).signal
1111
});
1212

1313
assert_throws_dom("SecurityError", () => event.transitionWhile(Promise.resolve()));
1414
});
1515
history.pushState(1, null, "#1");
16-
}, "AppHistoryNavigateEvent's transitionWhile() throws if invoked on a synthetic event");
16+
}, "event.transitionWhile() throws if invoked on a synthetic event");
1717
</script>

testing/web-platform/tests/navigation-api/navigate-event/transitionWhile-reject.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,5 @@
2222

2323
location.href = "#1";
2424
assert_equals(location.hash, "#1");
25-
}, "AppHistoryNavigateEvent's transitionWhile() should abort if the given promise rejects");
25+
}, "event.transitionWhile() should abort if the given promise rejects");
2626
</script>

0 commit comments

Comments
 (0)