1 <p>Tabbing focus into the bottom input should not trigger duplicate focus events for both inputs.
</p>
2 <input type=
"text" id=
"x"><br>
3 <input type=
"text" id=
"y">
6 Top Input: Focus Event #
1
7 Bottom Input: Focus Event #
1
8 Top Input: Focus Event #
2
14 if (window
.testRunner
)
15 window
.testRunner
.dumpAsText();
18 document
.getElementById('log').appendChild(document
.createTextNode(s
+"\n"));
21 var topInput
= document
.getElementById('x');
23 var bottomInput
= document
.getElementById('y');
24 var bottomCounter
= 0;
26 topInput
.addEventListener('focus', function() {
28 log("Top Input: Focus Event #" + topCounter
);
31 bottomInput
.addEventListener('focus', function() {
33 log("Bottom Input: Focus Event #" + bottomCounter
);
38 if (window
.eventSender
)
39 eventSender
.keyDown('\t');