Change fast/e* files to use pre and post js files in LayoutTests/resources.
[WebKit-https.git] / LayoutTests / fast / events / tab-focus-link-in-canvas.html
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../resources/js-test-pre.js"></script>
5 </head>
6 <body>
7
8 <a id="before" href="#">Before</a>
9
10 <canvas>
11   <a id="canvas_link" href="#">Canvas Link</a>
12 </canvas>
13
14 <script>
15 description("Ensures that you can tab to focus a link inside a canvas subtree.");
16
17 if (window.testRunner && window.eventSender) {
18     testRunner.dumpAsText();
19     testRunner.overridePreference("WebKitTabToLinksPreferenceKey", 1);
20
21     document.getElementById('before').focus();
22     shouldBe('document.activeElement.id', '"before"');
23
24     eventSender.keyDown('\t');
25     shouldBe('document.activeElement.id', '"canvas_link"');
26 }
27
28 </script>
29 <script src="../../resources/js-test-post.js"></script>
30 </body>
31 </html>