summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/soft-navigation-heuristics
diff options
context:
space:
mode:
Diffstat (limited to 'testing/web-platform/tests/soft-navigation-heuristics')
-rw-r--r--testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html14
1 files changed, 8 insertions, 6 deletions
diff --git a/testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html b/testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html
index 42e9a71899..d47b9b6538 100644
--- a/testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html
+++ b/testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html
@@ -15,14 +15,16 @@
</main>
<script>
const link = document.getElementById("link");
- testSoftNavigation({
- addContent: async () => {
+ testSoftNavigationNotDetected({
+ link: link,
+ eventTarget: link,
+ eventName: "click",
+ eventHandler: async e => {
+ const url = URL + "?" + counter;
+ history.replaceState({}, '', url);
await addImageToMain();
},
- link: link,
- pushState: (url)=>{history.replaceState({}, '', url);},
- test: "Detect soft navigation with replaceState"});
+ testName: "Should not detect soft navigation with just replaceState"});
</script>
</body>
</html>
-