7 testRunner
.dumpAsText();
9 window
.onload = function()
11 if (!window
.testRunner
)
14 for (var i
= 0; i
< 4; i
++) {
15 eventSender
.keyDown('\t');
21 var el
= document
.querySelector('pre');
22 el
.textContent
+= s
+ '\n';
27 document
.addEventListener('focus', function(e
) {
29 print((el
.getAttribute('data-tab') == nextToFocus
? 'PASS' : 'FAIL') +
30 ' - ' + el
.textContent
);
38 <p>Layout test for
<a href=
"https://bugs.webkit.org/show_bug.cgi?id=27099" tabindex=-
1>https://bugs.webkit.org/show_bug.cgi?id=
27099</a>
40 <div tabindex=
0 data-tab=
0>Div
0</div>
41 <div tabindex=
0 style=
"display:none">Div
1</div>
42 <div tabindex=
0 data-tab=
1>Div
2</div>
43 <div tabindex=
0 data-tab=
2 style=
"overflow:hidden;height:0">Div
3</div>
44 <div tabindex=
0 style=
"visibility:hidden">Div
4</div>
45 <div tabindex=
0 data-tab=
3>Div
5</div>