mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
fix typo and wrong API in window test
This commit is contained in:
@@ -81,10 +81,10 @@
|
|||||||
|
|
||||||
<script id=scroll>
|
<script id=scroll>
|
||||||
let scroll = false;
|
let scroll = false;
|
||||||
let scrolend = false
|
let scrollend = false
|
||||||
window.addEventListener('scroll', () => {scroll = true});
|
window.addEventListener('scroll', () => {scroll = true});
|
||||||
document.addEventListener('scrollend', () => {scrollend = true});
|
document.addEventListener('scrollend', () => {scrollend = true});
|
||||||
window.scrollTo(0);
|
window.scrollTo(0, 0);
|
||||||
|
|
||||||
testing.expectEqual(true, scroll);
|
testing.expectEqual(true, scroll);
|
||||||
testing.expectEqual(true, scrollend);
|
testing.expectEqual(true, scrollend);
|
||||||
|
|||||||
Reference in New Issue
Block a user