blob: c6cfcc6ce6c2875534217b9dbcc00f27866f7fcc [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ TabsToLinks=true ] -->
<html>
<head>
<script src="../../resources/js-test-pre.js"></script>
</head>
<body>
<a id="before" href="#">Before</a>
<canvas>
<a id="canvas_link" href="#">Canvas Link</a>
</canvas>
<script>
description("Ensures that you can tab to focus a link inside a canvas subtree.");
if (window.testRunner && window.eventSender) {
testRunner.dumpAsText();
document.getElementById('before').focus();
shouldBe('document.activeElement.id', '"before"');
eventSender.keyDown('\t');
shouldBe('document.activeElement.id', '"canvas_link"');
}
</script>
<script src="../../resources/js-test-post.js"></script>
</body>
</html>