blob: 01f4e0e59a602f07743ba8d677f908f7d7ad87c5 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<script src="../../../resources/js-test.js"></script>
<script src="../../../resources/ui-helper.js"></script>
<script src="resources/press-spacebar-at-element-and-check-for-page-scroll.js"></script>
</head>
<body style="height: 4096px"> <!-- Make the page really long to force vertical scrollbars. -->
<p id="description"></p>
<p id="test-container"><button id="test">Tap me</button></p>
<div id="console"></div>
<script>
description("Tests that activating a button (focusing it and pressing the spacebar) does not cause the page to scroll.");
checkActivatingElementUsingSpacebarDoesNotScrollPage(document.getElementById("test-container"), document.getElementById("test"), "click");
</script>
</body>
</html>