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

Side by Side Diff: LayoutTests/fast/forms/time-multiple-fields/time-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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 78
79 beginTest('Digit keys and backspace key','01:01'); 79 beginTest('Digit keys and backspace key','01:01');
80 keyDown('0'); // -> [00]:-- -- 80 keyDown('0'); // -> [00]:-- --
81 keyDown('\b'); // -> [--]:-- -- 81 keyDown('\b'); // -> [--]:-- --
82 keyDown('5'); // -> 05:[--] -- 82 keyDown('5'); // -> 05:[--] --
83 keyDown('6'); // -> 05:06 [--] 83 keyDown('6'); // -> 05:06 [--]
84 keyDown('\b'); // -> 05:06 [--] 84 keyDown('\b'); // -> 05:06 [--]
85 keyDown('P'); // -> 05:06 [PM] 85 keyDown('P'); // -> 05:06 [PM]
86 shouldBeEqualToString('input.value', '17:06'); 86 shouldBeEqualToString('input.value', '17:06');
87 87
88 // FIXME: We should test type ahead time out. When event.leapForward() affects
89 // keyboard event time stamp, we can uncomment this fragment.
90 /*
91 beginTest('Digit keys with type ahead timeout');
92 keyDown('1');
93 leapForward(1100);
94 keyDown('1');
95 keyDown('5');
96 keyDown('6');
97 keyDown('A');
98 shouldBeEqualToString('input.value', '01:56');
99 */
100
101 beginTest('Left/Right keys', '01:24'); 88 beginTest('Left/Right keys', '01:24');
102 keyDown('rightArrow'); 89 keyDown('rightArrow');
103 keyDown('5'); 90 keyDown('5');
104 keyDown('leftArrow'); 91 keyDown('leftArrow');
105 keyDown('6'); 92 keyDown('6');
106 shouldBeEqualToString('input.value', '06:05'); 93 shouldBeEqualToString('input.value', '06:05');
107 keyDown('leftArrow'); 94 keyDown('leftArrow');
108 keyDown('leftArrow'); 95 keyDown('leftArrow');
109 keyDown('leftArrow'); 96 keyDown('leftArrow');
110 shouldBeEqualToString('document.activeElement.id', 'input'); 97 shouldBeEqualToString('document.activeElement.id', 'input');
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
229 keyDown('\t'); // -> 01:[56] 216 keyDown('\t'); // -> 01:[56]
230 keyDown('2'); // -> 01:[02] 217 keyDown('2'); // -> 01:[02]
231 shouldBeEqualToString('input.value', '01:02'); 218 shouldBeEqualToString('input.value', '01:02');
232 keyDown('\t', ['shiftKey']); // -> [01]:02 219 keyDown('\t', ['shiftKey']); // -> [01]:02
233 keyDown('3'); // -> [03]:02 220 keyDown('3'); // -> [03]:02
234 shouldBeEqualToString('input.value', '03:02'); 221 shouldBeEqualToString('input.value', '03:02');
235 input.removeAttribute("lang"); 222 input.removeAttribute("lang");
236 </script> 223 </script>
237 </body> 224 </body>
238 </html> 225 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698