blob: ffd2d70655a4bddc414d81bca89ed83caf0a2957 [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ]-->
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
body {
height: 5000px;
width: 200%;
}
</style>
<script src="../../../resources/js-test-pre.js"></script>
<script src="../../../resources/ui-helper.js"></script>
<script>
var jsTestIsAsync = true;
async function doTest()
{
shouldBe('window.pageYOffset', '0');
shouldBe('window.pageXOffset', '0');
await UIHelper.dragFromPointToPoint(150, 150, 200, 200, 0.1);
shouldNotBe('window.pageYOffset', '0');
shouldNotBe('window.pageXOffset', '0');
document.documentElement.style.overscrollBehavior = "none";
await UIHelper.dragFromPointToPoint(150, 150, 200, 200, 0.1);
shouldBe('window.pageYOffset', '0');
shouldBe('window.pageXOffset', '0');
finishJSTest();
}
window.addEventListener('load', () => {
doTest();
}, false);
</script>
</head>
<body>
Top
<div class="content"></div>
<div id="console"></div>
<script src="../../../resources/js-test-post.js"></script>
</body>
</html>