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

Side by Side Diff: LayoutTests/fast/forms/datetimelocal-multiple-fields/datetimelocal-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
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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 keyDown('7'); // -> 05/06/[0007] --:-- -- 83 keyDown('7'); // -> 05/06/[0007] --:-- --
84 keyDown("\b"); // -> 05/06/[yyyy] --:-- -- 84 keyDown("\b"); // -> 05/06/[yyyy] --:-- --
85 keyDown('8'); // -> 05/06/[0008] --:-- -- 85 keyDown('8'); // -> 05/06/[0008] --:-- --
86 keyDown('rightArrow'); // -> 05/06/0008 [--]:-- -- 86 keyDown('rightArrow'); // -> 05/06/0008 [--]:-- --
87 keyDown('9'); // -> 05/06/0008 09:[--] -- 87 keyDown('9'); // -> 05/06/0008 09:[--] --
88 keyDown('1'); // -> 05/06/0008 09:[01] -- 88 keyDown('1'); // -> 05/06/0008 09:[01] --
89 keyDown('0'); // -> 05/06/0008 09:10 [--] 89 keyDown('0'); // -> 05/06/0008 09:10 [--]
90 keyDown('A'); // -> 05/06/0008 09:10 [AM] 90 keyDown('A'); // -> 05/06/0008 09:10 [AM]
91 shouldBeEqualToString('input.value', '0008-05-06T09:10'); 91 shouldBeEqualToString('input.value', '0008-05-06T09:10');
92 92
93 // FIXME: We should test type ahead time out. When event.leapForward() affects
94 // keyboard event time stamp, we can uncomment this fragment.
95 /*
96 beginTest('Digit keys with type ahead timeout', '2012-01-01T00:00');
97 keyDown('1'); // -> [01]/01/2012 12:00 AM
98 leapForward(1100);
99 keyDown('1'); // -> [01]/01/2012 12:00 AM
100 keyDown('2'); // -> 12/[01]/2012 12:00 AM
101 keyDown('5'); // -> 12/05/[2012] 12:00 AM
102 keyDown('6'); // -> 12/05/[0006] 12:00 AM
103 shouldBeEqualToString('input.value', '0006-12-05T00:00');
104 */
105
106 beginTest('Left/Right keys', '2012-09-29T00:00'); 93 beginTest('Left/Right keys', '2012-09-29T00:00');
107 keyDown('rightArrow'); // -> 09/[29]/2012 12:00 AM 94 keyDown('rightArrow'); // -> 09/[29]/2012 12:00 AM
108 keyDown('5'); // -> 09/05/[2012] 12:00 AM 95 keyDown('5'); // -> 09/05/[2012] 12:00 AM
109 keyDown('rightArrow'); // -> 09/05/2012 [12]:00 AM 96 keyDown('rightArrow'); // -> 09/05/2012 [12]:00 AM
110 keyDown('7'); // -> 09/05/2012 07:[00] AM 97 keyDown('7'); // -> 09/05/2012 07:[00] AM
111 keyDown('rightArrow'); // -> 09/05/2012 07:00 [AM] 98 keyDown('rightArrow'); // -> 09/05/2012 07:00 [AM]
112 keyDown('P'); // -> 09/05/2012 07:00 [PM] 99 keyDown('P'); // -> 09/05/2012 07:00 [PM]
113 keyDown('leftArrow'); // -> 09/05/2012 07:[00] PM 100 keyDown('leftArrow'); // -> 09/05/2012 07:[00] PM
114 keyDown('5'); // -> 09/05/2012 07:[05] PM 101 keyDown('5'); // -> 09/05/2012 07:[05] PM
115 keyDown('leftArrow'); // -> 09/05/2012 [07]:05 PM 102 keyDown('leftArrow'); // -> 09/05/2012 [07]:05 PM
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 keyDown('upArrow'); // 11/08/2012 12:00 AM 249 keyDown('upArrow'); // 11/08/2012 12:00 AM
263 shouldBeEqualToString('input.value', '2012-11-08T00:00'); 250 shouldBeEqualToString('input.value', '2012-11-08T00:00');
264 input.readOnly = false; 251 input.readOnly = false;
265 input.focus(); 252 input.focus();
266 keyDown('upArrow'); // [12]/08/2012 12:00 AM 253 keyDown('upArrow'); // [12]/08/2012 12:00 AM
267 shouldBeEqualToString('input.value', '2012-12-08T00:00'); 254 shouldBeEqualToString('input.value', '2012-12-08T00:00');
268 255
269 </script> 256 </script>
270 </body> 257 </body>
271 </html> 258 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698