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

Side by Side Diff: LayoutTests/fast/forms/month-multiple-fields/month-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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 beginTest('Digit keys'); 48 beginTest('Digit keys');
49 keyDown('s'); 49 keyDown('s');
50 keyDown('rightArrow'); 50 keyDown('rightArrow');
51 keyDown('0'); 51 keyDown('0');
52 keyDown('1'); 52 keyDown('1');
53 keyDown('2'); 53 keyDown('2');
54 keyDown('A'); 54 keyDown('A');
55 shouldBeEqualToString('input.value', '0012-09'); 55 shouldBeEqualToString('input.value', '0012-09');
56 56
57 // FIXME: We should test type ahead time out. When event.leapForward() affects
58 // keyboard event time stamp, we can uncomment this fragment.
59 /*
60 beginTest('Digit keys with type ahead timeout');
61 keyDown('1');
62 leapForward(1100);
63 keyDown('1');
64 keyDown('5');
65 keyDown('6');
66 keyDown('A');
67 shouldBeEqualToString('input.value', '0056-01');
68 */
69
70 beginTest('Left/Right keys', '2012-09'); 57 beginTest('Left/Right keys', '2012-09');
71 keyDown('rightArrow'); 58 keyDown('rightArrow');
72 keyDown('5'); 59 keyDown('5');
73 keyDown('leftArrow'); 60 keyDown('leftArrow');
74 keyDown('6'); 61 keyDown('6');
75 shouldBeEqualToString('input.value', '0005-06'); 62 shouldBeEqualToString('input.value', '0005-06');
76 keyDown('leftArrow'); 63 keyDown('leftArrow');
77 keyDown('leftArrow'); 64 keyDown('leftArrow');
78 keyDown('leftArrow'); 65 keyDown('leftArrow');
79 shouldBeEqualToString('document.activeElement.id', 'input'); 66 shouldBeEqualToString('document.activeElement.id', 'input');
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 keyDown('\t'); // -> [2012] M10 200 keyDown('\t'); // -> [2012] M10
214 keyDown('2'); // -> [0002] M10 201 keyDown('2'); // -> [0002] M10
215 shouldBeEqualToString('input.value', '0002-10'); 202 shouldBeEqualToString('input.value', '0002-10');
216 keyDown('\t', ['shiftKey']); // -> 0002 [M10] 203 keyDown('\t', ['shiftKey']); // -> 0002 [M10]
217 keyDown('upArrow'); // -> 0002 [M11] 204 keyDown('upArrow'); // -> 0002 [M11]
218 shouldBeEqualToString('input.value', '0002-11'); 205 shouldBeEqualToString('input.value', '0002-11');
219 input.removeAttribute("lang"); 206 input.removeAttribute("lang");
220 </script> 207 </script>
221 </body> 208 </body>
222 </html> 209 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698