blob: 49d321981b2f5264f91e73395fa81e2c8d42d035 [file] [log] [blame]
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
<script>
var successfullyParsed = false;
if (window.testRunner)
testRunner.dumpAsText();
function touchEnd(event) {
debug("Received touch ended " + event);
event.stopPropagation();
event.preventDefault();
}
function touchStart(event) {
debug("Received touch start " + event);
event.stopPropagation();
event.preventDefault();
}
</script>
</head>
<body>
<div role="button" id="button" ontouchstart="touchStart(event);" ontouchend="touchEnd(event);">button</div>
<p id="description"></p>
<div id="console"></div>
<script>
description("Ensure that if an element on handles touch events, the simulated accessibility press will still activate those elements.");
if (window.accessibilityController) {
var button = accessibilityController.accessibleElementById("button");
button.press();
}
successfullyParsed = true;
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>