fix typo and wrong API in window test

This commit is contained in:
Karl Seguin
2025-09-30 16:28:47 +08:00
parent 20cb6cdd8b
commit 444b08be32

View File

@@ -81,10 +81,10 @@
<script id=scroll>
let scroll = false;
let scrolend = false
let scrollend = false
window.addEventListener('scroll', () => {scroll = true});
document.addEventListener('scrollend', () => {scrollend = true});
window.scrollTo(0);
window.scrollTo(0, 0);
testing.expectEqual(true, scroll);
testing.expectEqual(true, scrollend);