Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Side by Side Diff: LayoutTests/fast/forms/date-multiple-fields/date-multiple-fields-keyboard-events.html

Issue 112513002: Remove keyboard input timeout for date, datetime-local, month, time, and week input types on non-An… (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-keyboard-events.html » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 <!DOCTYPE html> 1 <!DOCTYPE html>
2 <html> 2 <html>
3 <head> 3 <head>
4 <script src="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 keyDown('1'); // -> [01]/dd/yyyy 71 keyDown('1'); // -> [01]/dd/yyyy
72 keyDown("\b"); // -> [mm]/20/2012 72 keyDown("\b"); // -> [mm]/20/2012
73 keyDown('5'); // -> 05/[dd]/yyyy 73 keyDown('5'); // -> 05/[dd]/yyyy
74 keyDown('6'); // -> 05/06/[yyyy] 74 keyDown('6'); // -> 05/06/[yyyy]
75 keyDown("\b"); // -> 05/06/[yyyy] 75 keyDown("\b"); // -> 05/06/[yyyy]
76 keyDown('7'); // -> 05/06/[0007] 76 keyDown('7'); // -> 05/06/[0007]
77 keyDown("\b"); // -> 05/06/[yyyy] 77 keyDown("\b"); // -> 05/06/[yyyy]
78 keyDown('8'); // -> 05/06/[0008] 78 keyDown('8'); // -> 05/06/[0008]
79 shouldBeEqualToString('input.value', '0008-05-06'); 79 shouldBeEqualToString('input.value', '0008-05-06');
80 80
81 // FIXME: We should test type ahead time out. When event.leapForward() affects
82 // keyboard event time stamp, we can uncomment this fragment.
83 /*
84 beginTest('Digit keys with type ahead timeout');
85 keyDown('1'); // -> [01]/dd/yyyy
86 leapForward(1100); // -> 01/[dd]/yyyy
87 keyDown('1'); // -> 01/[01]/yyyy
88 keyDown('5'); // -> 01/15/[yyyy]
89 keyDown('6'); // -> 01/15/[0006]
90 shouldBeEqualToString('input.value', '0006-01-15');
91 */
92
93 beginTest('Digit keys with maximum value', null, null, '2013-01-01'); 81 beginTest('Digit keys with maximum value', null, null, '2013-01-01');
94 keyDown('5'); // -> 05/[dd]/yyyy 82 keyDown('5'); // -> 05/[dd]/yyyy
95 keyDown('6'); // -> 05/06/[yyyy] 83 keyDown('6'); // -> 05/06/[yyyy]
96 keyDown('2'); // -> 05/06/[0002] 84 keyDown('2'); // -> 05/06/[0002]
97 keyDown('0'); // -> 05/06/[0020] 85 keyDown('0'); // -> 05/06/[0020]
98 keyDown('1'); // -> 05/06/[0201] 86 keyDown('1'); // -> 05/06/[0201]
99 keyDown('4'); // -> 05/06/2014 87 keyDown('4'); // -> 05/06/2014
100 shouldBeEqualToString('input.value', '2014-05-06'); 88 shouldBeEqualToString('input.value', '2014-05-06');
101 89
102 beginTest('Digit keys with minimum value', null, '2013-01-01'); 90 beginTest('Digit keys with minimum value', null, '2013-01-01');
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
276 keyDown('upArrow'); // 11/08/2012 264 keyDown('upArrow'); // 11/08/2012
277 shouldBeEqualToString('input.value', '2012-11-08'); 265 shouldBeEqualToString('input.value', '2012-11-08');
278 input.readOnly = false; 266 input.readOnly = false;
279 input.focus(); 267 input.focus();
280 keyDown('upArrow'); // [12]/08/2012 268 keyDown('upArrow'); // [12]/08/2012
281 shouldBeEqualToString('input.value', '2012-12-08'); 269 shouldBeEqualToString('input.value', '2012-12-08');
282 270
283 </script> 271 </script>
284 </body> 272 </body>
285 </html> 273 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-multiple-fields-keyboard-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698