ladybird/Tests/LibWeb/Text/input/HTML/pushState-navigation-event.html
2025-03-20 11:50:49 +01:00

15 lines
460 B
HTML

<!DOCTYPE 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>