OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <script src="../../js/resources/js-test-pre.js"></script> | 4 <script src="../../js/resources/js-test-pre.js"></script> |
5 </head> | 5 </head> |
6 <body> | 6 <body> |
7 <p id="description"></p> | 7 <p id="description"></p> |
8 <p> | 8 <p> |
9 Please run this with DumpRenderTree. | 9 Please run this with DumpRenderTree. |
10 </p> | 10 </p> |
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
91 keyDown('\t'); | 91 keyDown('\t'); |
92 keyDown('5'); | 92 keyDown('5'); |
93 shouldBeEqualToString('input.value', '03:05'); | 93 shouldBeEqualToString('input.value', '03:05'); |
94 keyDown('\t', ['shiftKey']); | 94 keyDown('\t', ['shiftKey']); |
95 keyDown('7'); | 95 keyDown('7'); |
96 shouldBeEqualToString('input.value', '07:05'); | 96 shouldBeEqualToString('input.value', '07:05'); |
97 keyDown('\t'); | 97 keyDown('\t'); |
98 keyDown('\t'); | 98 keyDown('\t'); |
99 shouldBeEqualToString('document.activeElement.id', 'another'); | 99 shouldBeEqualToString('document.activeElement.id', 'another'); |
100 | 100 |
| 101 beginTest('Tab navigation should skip disabled/readonly inputs', ''); |
| 102 before.focus(); |
| 103 input.disabled = true; |
| 104 keyDown('\t'); |
| 105 shouldBeEqualToString('document.activeElement.id', 'another'); |
| 106 input.disabled = false; |
| 107 |
| 108 before.focus(); |
| 109 input.readOnly = true; |
| 110 keyDown('\t'); |
| 111 shouldBeEqualToString('document.activeElement.id', 'another'); |
| 112 input.readOnly = false; |
| 113 |
101 beginTest('Shfit+Tab key', '03:00'); | 114 beginTest('Shfit+Tab key', '03:00'); |
102 another.focus(); | 115 another.focus(); |
103 keyDown('\t', ['shiftKey']); | 116 keyDown('\t', ['shiftKey']); |
104 keyDown('P'); | 117 keyDown('P'); |
105 shouldBeEqualToString('input.value', '15:00'); | 118 shouldBeEqualToString('input.value', '15:00'); |
106 keyDown('\t', ['shiftKey']); | 119 keyDown('\t', ['shiftKey']); |
107 keyDown('3'); | 120 keyDown('3'); |
108 shouldBeEqualToString('input.value', '15:03'); | 121 shouldBeEqualToString('input.value', '15:03'); |
109 keyDown('\t', ['shiftKey']); | 122 keyDown('\t', ['shiftKey']); |
110 keyDown('\t', ['shiftKey']); | 123 keyDown('\t', ['shiftKey']); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
156 keyDown('leftArrow'); | 169 keyDown('leftArrow'); |
157 keyDown('2'); | 170 keyDown('2'); |
158 shouldBeEqualToString('input.value', '01:02'); | 171 shouldBeEqualToString('input.value', '01:02'); |
159 keyDown('rightArrow'); | 172 keyDown('rightArrow'); |
160 keyDown('3'); | 173 keyDown('3'); |
161 shouldBeEqualToString('input.value', '03:02'); | 174 shouldBeEqualToString('input.value', '03:02'); |
162 </script> | 175 </script> |
163 <script src="../../js/resources/js-test-post.js"></script> | 176 <script src="../../js/resources/js-test-post.js"></script> |
164 </body> | 177 </body> |
165 </html> | 178 </html> |
OLD | NEW |