3 <p>Press tab twice. The second input should be focused.
</p>
5 <input onfocus=
"notify('a')">
6 <iframe style=
"display:none"></iframe>
7 <input id=
"i2" onfocus=
"notify('b')">
15 document
.getElementById('out').textContent
= 'FAIL';
20 document
.getElementById('out').textContent
= 'PASS';
25 if (msg
!= expected
[i
++])
29 window
.frames
[0].document
.body
.onfocus
= fail
;
31 var expected
= ['a', 'b'];
34 if (window
.testRunner
)
35 testRunner
.dumpAsText();
37 if (window
.eventSender
) {
38 document
.body
.focus();
39 eventSender
.keyDown('\t');
40 eventSender
.keyDown('\t');
42 // Ensure we got 2 focus events.
43 if (i
== 2 && document
.activeElement
.id
== 'i2')