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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 keyDown('2'); // -> 12/[02]/2012 | 189 keyDown('2'); // -> 12/[02]/2012 |
190 shouldBeEqualToString('input.value', '2012-12-02'); | 190 shouldBeEqualToString('input.value', '2012-12-02'); |
191 | 191 |
192 // The tests in the following block fail on platforms without the | 192 // The tests in the following block fail on platforms without the |
193 // lang-attribute-aware-form-control-UI feature. | 193 // lang-attribute-aware-form-control-UI feature. |
194 input.setAttribute("lang", "he-il"); | 194 input.setAttribute("lang", "he-il"); |
195 beginTest('RTL Left/Right keys', '2012-09-28'); | 195 beginTest('RTL Left/Right keys', '2012-09-28'); |
196 // 2012/09/[28] | 196 // 2012/09/[28] |
197 keyDown('1'); // -> 2012/09/[01] | 197 keyDown('1'); // -> 2012/09/[01] |
198 shouldBeEqualToString('input.value', '2012-09-01'); | 198 shouldBeEqualToString('input.value', '2012-09-01'); |
199 keyDown('leftArrow'); // -> 2012/[09]/01 | 199 keyDown('rightArrow'); // -> 2012/[09]/01 |
200 keyDown('2'); // -> [2012]/02/01 | 200 keyDown('2'); // -> [2012]/02/01 |
201 shouldBeEqualToString('input.value', '2012-02-01'); | 201 shouldBeEqualToString('input.value', '2012-02-01'); |
202 keyDown('rightArrow'); // -> 2012/[02]/01 | 202 keyDown('leftArrow'); // -> 2012/[02]/01 |
203 keyDown('3'); // -> [2012]/03/01 | 203 keyDown('3'); // -> [2012]/03/01 |
204 shouldBeEqualToString('input.value', '2012-03-01'); | 204 shouldBeEqualToString('input.value', '2012-03-01'); |
205 input.removeAttribute("lang"); | 205 input.removeAttribute("lang"); |
206 | 206 |
207 beginTest('Disabled/readonly', '2012-10-08'); | 207 beginTest('Disabled/readonly', '2012-10-08'); |
208 input.disabled = true; | 208 input.disabled = true; |
209 keyDown('upArrow'); // 10/08/2012 | 209 keyDown('upArrow'); // 10/08/2012 |
210 shouldBeEqualToString('input.value', '2012-10-08'); | 210 shouldBeEqualToString('input.value', '2012-10-08'); |
211 input.disabled = false; | 211 input.disabled = false; |
212 input.focus(); | 212 input.focus(); |
213 keyDown('upArrow'); // [11]/08/2012 | 213 keyDown('upArrow'); // [11]/08/2012 |
214 shouldBeEqualToString('input.value', '2012-11-08'); | 214 shouldBeEqualToString('input.value', '2012-11-08'); |
215 input.readOnly = true; | 215 input.readOnly = true; |
216 keyDown('upArrow'); // 11/08/2012 | 216 keyDown('upArrow'); // 11/08/2012 |
217 shouldBeEqualToString('input.value', '2012-11-08'); | 217 shouldBeEqualToString('input.value', '2012-11-08'); |
218 input.readOnly = false; | 218 input.readOnly = false; |
219 input.focus(); | 219 input.focus(); |
220 keyDown('upArrow'); // [12]/08/2012 | 220 keyDown('upArrow'); // [12]/08/2012 |
221 shouldBeEqualToString('input.value', '2012-12-08'); | 221 shouldBeEqualToString('input.value', '2012-12-08'); |
222 | 222 |
223 </script> | 223 </script> |
224 <script src="../../js/resources/js-test-post.js"></script> | 224 <script src="../../js/resources/js-test-post.js"></script> |
225 </body> | 225 </body> |
226 </html> | 226 </html> |
OLD | NEW |