Skip to content

Commit 74dc7b2

Browse files
authored
Merge pull request #1105 from lightpanda-io/fix_bad_window_test
fix typo and wrong API in window test
2 parents eaf8459 + 444b08b commit 74dc7b2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/tests/window/window.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,10 @@
8181

8282
<script id=scroll>
8383
let scroll = false;
84-
let scrolend = false
84+
let scrollend = false
8585
window.addEventListener('scroll', () => {scroll = true});
8686
document.addEventListener('scrollend', () => {scrollend = true});
87-
window.scrollTo(0);
87+
window.scrollTo(0, 0);
8888

8989
testing.expectEqual(true, scroll);
9090
testing.expectEqual(true, scrollend);

0 commit comments

Comments
 (0)