8 var el
= document
.querySelector('pre');
9 el
.textContent
+= 'PASS\n';
14 var el
= document
.querySelector('pre');
15 el
.textContent
+= 'FAIL\n';
18 if (window
.testRunner
) {
19 testRunner
.dumpAsText();
20 testRunner
.overridePreference('WebKitTabToLinksPreferenceKey', false);
23 window
.onload = function()
25 if (!window
.testRunner
)
28 for (var i
= 0; i
< 2; i
++) {
29 eventSender
.keyDown('\t');
37 <p>This test ensures that we can tab to an a element with a tab index. Press tab
38 to focus the element below.
40 <p><a onfocus=
"fail()" href=
"#">Not focusable (given the WebKitTabToLinks pref is set to false)
</a>
41 <p><a onfocus=
"fail()">Not focusable
</a>
42 <p><a tabindex=
0 onfocus=
"pass()" href=
"#">Focusable
</a>
43 <p><a tabindex=
0 onfocus=
"pass()">Focusable
</a>