Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
test(webkit): add new scrolling tests to ensure correct webkit behavi…
…or (#5496)
- Loading branch information
1 parent
846fd71
commit a9faa9c
Showing
2 changed files
with
82 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Scrollable test</title> | ||
</head> | ||
<body> | ||
<script src='mouse-helper.js'></script> | ||
<script> | ||
for (let i = 0; i < 100; i++) { | ||
let button = document.createElement('button'); | ||
button.textContent = i + ': not clicked'; | ||
button.id = 'button-' + i; | ||
button.onclick = () => button.textContent = 'clicked'; | ||
button.oncontextmenu = event => { | ||
event.preventDefault(); | ||
button.textContent = 'context menu'; | ||
} | ||
document.body.appendChild(button); | ||
document.body.appendChild(document.createElement('br')); | ||
} | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters