Files
sousa-gecko/testing/web-platform/tests/soft-navigation-heuristics/pointerup-soft-navigation-detection.tentative.html
T
Ryuya 066b4f4fd2 Bug 2032783 [wpt PR 59213] - [soft navs] Add pointerup-triggered soft navigation test, a=testonly
Automatic update from web-platform-tests
[soft navs] Add pointerup-triggered soft navigation test

This CL adds a tentative WPT for soft navigations initiated from a
pointerup interaction.

Chromium m147+ supports soft navigation detection for events that
receive Event Timing interaction IDs, including pointerup, but
soft-navigation-heuristics does not currently have pointerup-driven
coverage.

Ref: https://github.com/WICG/soft-navigations/issues/40
Change-Id: Idf2254fc4fadb71699d5ee10f72e34ab2fb1dfbc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7732642
Reviewed-by: Scott Haseley <shaseley@chromium.org>
Reviewed-by: Michal Mocny <mmocny@chromium.org>
Commit-Queue: Scott Haseley <shaseley@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1615930}

--

wpt-commits: 0df3d6121787fdb53f04d15788f4a46e54692968
wpt-pr: 59213
2026-04-23 10:15:39 +00:00

26 lines
825 B
HTML

<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<title>Detect soft navigation initiated from pointerup.</title>
<script src="/resources/testharness.js"></script>
<script src="/resources/testharnessreport.js"></script>
<script src="/resources/testdriver.js"></script>
<script src="/resources/testdriver-vendor.js"></script>
<script src="resources/soft-navigation-helper.js"></script>
</head>
<body>
<button id="target">Trigger soft navigation on pointerup</button>
<main id="main"></main>
<script>
testSoftNavigation({
testName: "Test that a soft navigation is detected from pointerup",
clickTarget: document.getElementById("target"),
registerInteractionEvent: (cb) => {
document.getElementById("target").addEventListener("pointerup", cb);
},
});
</script>
</body>
</html>