1
0
Fork 0
firefox/testing/web-platform/tests/navigation-api/ordering-and-transition
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00
..
resources Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
anchor-download-intercept-reject.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
anchor-download-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
anchor-download.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
back-cross-document-event-order.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
back-same-document-intercept-reject.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
back-same-document-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
back-same-document.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
currententrychange-before-popstate-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
currententrychange-dispose-ordering.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
intercept-async.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
location-href-canceled.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
location-href-double-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
location-href-intercept-reentrant.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
location-href-intercept-reject.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
location-href-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-204-205-download-then-same-document.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-canceled.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-cross-document-double.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-cross-document-event-order.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-double-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-in-transition-finished.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-intercept-precommitHandler-redirect.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-intercept-precommitHandler-reject.tentative.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-intercept-precommitHandler.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-intercept-stop.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-same-document-intercept-reentrant.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-same-document-intercept-reject.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
navigate-same-document.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
README.md Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
reload-canceled.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
reload-intercept-reject.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
reload-intercept.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
reload-no-popstate.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
transition-cross-document.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
transition-finished-mark-as-handled.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00
transition-realms-and-identity.html Adding upstream version 140.0. 2025-06-25 09:37:52 +02:00

Navigation API ordering/transition tests

These are meant to test the ordering between various events and promises, as well as in some cases how the navigation.transition values changes.

Some of them use the Recorder framework in resources/helpers.mjs, and others test tricky cases (e.g. reentrancy) in a more ad-hoc way.

https://github.com/WICG/navigation-api/#complete-event-sequence is a useful reference for the intent of these tests.

Note:

  • Variants specifically exist for currententrychange because an event listener existing for currententrychange causes code to run, and thus microtasks to run, at a very specific point in the navigation-commit lifecycle. We want to test that it doesn't impact the ordering.
  • Similarly we test that intercept() does not change the ordering compared to no intercept() call, for same-document navigations, by trying to ensure most variants have appropriate intercept() counterparts with similar orderings.

TODOs: