8 var el = document.querySelector('pre');
9 el.textContent = 'PASS';
14 var el = document.querySelector('pre');
15 el.textContent = 'FAIL';
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 < 1; 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 tabindex=0 onfocus="fail()" href="#">Not focusable (given the WebKitTabToLinks pref is set to false)</a>
41 <p><a tabindex=0 onfocus="pass()">Focusable</a>