mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-05 09:06:08 +00:00
LibWeb: Add popstate event support
It is going to be useful in writing tests for History API.
This commit is contained in:
parent
0ffc338406
commit
ee3dd7977d
Notes:
sideshowbarker
2024-07-17 16:42:19 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: ee3dd7977d
Pull-request: https://github.com/SerenityOS/serenity/pull/23933
11 changed files with 134 additions and 3 deletions
|
@ -0,0 +1,10 @@
|
|||
<script src="../include.js"></script>
|
||||
<iframe src="../../data/iframe-popstate-event.html"></iframe>
|
||||
<script>
|
||||
asyncTest(done => {
|
||||
window.addEventListener("message", event => {
|
||||
println(event.data);
|
||||
done();
|
||||
});
|
||||
});
|
||||
</script>
|
Loading…
Add table
Add a link
Reference in a new issue