Files
serenity/Tests/LibWeb/Text/input/HTML/pushState-navigation-event.html
Andreas Kling 23fd706ea9 LibWeb: Fire navigation event as required in History.pushState()
(cherry picked from commit a1519e67fb7a47755d12ff1e8ce2a7de28087933)
2024-11-17 13:47:42 -05:00

15 lines
444 B
HTML

<script src="../include.js"></script>
<script>
asyncTest((done) => {
let handler = function() {
println("PASS");
window.navigation.removeEventListener("navigate", handler);
history.pushState({}, null, "pushState-navigation-event.html");
done();
};
window.navigation.addEventListener("navigate", handler);
history.pushState({}, null, "?ok");
});
</script>