blob: 6a5b408a2f7f3607bb7c013f3cc10760496c0e9e [file] [log] [blame]
<!DOCTYPE html> <!-- webkit-test-runner [ AsyncOverflowScrollingEnabled=true ] -->
<html>
<head>
<style>
.overflow {
overflow: scroll;
width: 200px;
height: 200px;
}
#overflow1 {
-webkit-overflow-scrolling: touch;
}
#overflow2 {
-webkit-overflow-scrolling: auto;
}
.contents {
height: 1000px;
}
</style>
<script>
if (window.testRunner)
testRunner.dumpAsText();
function doTest() {
document.getElementById('overflow1').style.webkitOverflowScrolling = 'auto';
document.getElementById('overflow2').style.webkitOverflowScrolling = 'touch';
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="overflow1" class="overflow">
<div class="contents">
This test should not crash.
</div>
</div>
<div id="overflow2" class="overflow">
<div class="contents">
This test should not crash.
</div>
</div>
</body>
</html>