Remove SnowLeopard expected results.
[WebKit-https.git] / LayoutTests / fast / forms / time-multiple-fields / time-multiple-fields-tabindex.html
1 <!DOCTYPE html>
2 <html>
3 <body>
4 <script src="../../js/resources/js-test-pre.js"></script>
5 <script src="../resources/common.js"></script>
6
7 <input id="tabindex30" tabindex="30">
8 <input id="tabindex20-1" tabindex="20">
9 <input id="time-with-tabindex20" tabindex="20" type="time">
10 <input id="tabindex20-3" tabindex="20">
11 <input id="tabindex10" tabindex="10">
12
13 <script>
14 if (!window.eventSender || !window.internals)
15     debug('This requires DRT/WRT.');
16
17 var firstSubField = "-webkit-datetime-edit-hour-field";
18 var lastSubField = "-webkit-datetime-edit-ampm-field";
19 var tab = '\t';
20 var shift = ['shiftKey'];
21
22 $('tabindex10').focus();
23 var shadowRoot = internals.youngestShadowRoot($('time-with-tabindex20'));
24
25 debug('Forword:');
26 shouldBeEqualToString('eventSender.keyDown(tab); document.activeElement.id', 'tabindex20-1');
27 shouldBeEqualToString('eventSender.keyDown(tab); document.activeElement.id', 'time-with-tabindex20');
28 shouldBe('shadowRoot.activeElement.getAttribute("pseudo")', 'firstSubField');
29 shouldBe('eventSender.keyDown(tab); eventSender.keyDown(tab); shadowRoot.activeElement.getAttribute("pseudo")', 'lastSubField');
30 shouldBeEqualToString('eventSender.keyDown(tab); document.activeElement.id', 'tabindex20-3');
31 shouldBeEqualToString('eventSender.keyDown(tab); document.activeElement.id', 'tabindex30');
32
33 debug('');
34 debug('Backword:');
35 shouldBeEqualToString('eventSender.keyDown(tab, shift); document.activeElement.id', 'tabindex20-3');
36 shouldBeEqualToString('eventSender.keyDown(tab, shift); document.activeElement.id', 'time-with-tabindex20');
37 shouldBe('shadowRoot.activeElement.getAttribute("pseudo")', 'lastSubField');
38 shouldBe('eventSender.keyDown(tab, shift); eventSender.keyDown(tab, shift); shadowRoot.activeElement.getAttribute("pseudo")', 'firstSubField');
39 shouldBeEqualToString('eventSender.keyDown(tab, shift); document.activeElement.id', 'tabindex20-1');
40
41
42 </script>
43 <script src="../../js/resources/js-test-post.js"></script>
44 </body>
45 </html>