diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-19 01:13:27 +0000 |
commit | 40a355a42d4a9444dc753c04c6608dade2f06a23 (patch) | |
tree | 871fc667d2de662f171103ce5ec067014ef85e61 /testing/web-platform/tests/soft-navigation-heuristics | |
parent | Adding upstream version 124.0.1. (diff) | |
download | firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.tar.xz firefox-40a355a42d4a9444dc753c04c6608dade2f06a23.zip |
Adding upstream version 125.0.1.upstream/125.0.1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'testing/web-platform/tests/soft-navigation-heuristics')
-rw-r--r-- | testing/web-platform/tests/soft-navigation-heuristics/replacestate.tentative.html | 14 |
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> - |