4 <script src=
"../../../resources/js-test.js"></script>
7 var label
= document
.getElementById('label');
8 var button
= document
.getElementById('button');
10 debug('Focus should be on the label');
11 shouldBe('document.activeElement', 'label');
12 eventSender
.keyDown('\t');
13 debug('Focus should be on the button after pressing tab');
14 shouldBe('document.activeElement', 'button');
15 eventSender
.keyDown('\t', ['shiftKey']);
16 debug('Focus should be on the label after pressing shift+tab');
17 shouldBe('document.activeElement', 'label');
21 <body onload=
"runTest()">
22 <label id=
"label" contenteditable
>I'm editable.
</label>
23 <button id=
"button">Just a button
</button>