blob: 2f249712df6379cc3419c723abcac202282d9650 [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"><input type="reset" id="test"></p>
<div id="console"></div>
<script>
description("Tests that activating a Reset 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>