Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / events / tab-focus-link-in-canvas.html
blob847bff61977bb87887fcb387f3c1352897775212
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test.js"></script>
5 </head>
6 <body>
8 <a id="before" href="#">Before</a>
10 <canvas>
11 <a id="canvas_link" href="#">Canvas Link</a>
12 </canvas>
14 <script>
15 description("Ensures that you can tab to focus a link inside a canvas subtree.");
17 if (window.testRunner && window.eventSender) {
18 testRunner.dumpAsText();
19 testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
21 document.getElementById('before').focus();
22 shouldBe('document.activeElement.id', '"before"');
24 eventSender.keyDown('\t');
25 shouldBe('document.activeElement.id', '"canvas_link"');
28 </script>
29 </body>
30 </html>