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

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

Issue 11548050: Merge 137152 (Closed) Base URL: http://svn.webkit.org/repository/webkit/branches/chromium/1312/
Patch Set: Created 8 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
OLDNEW
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 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 shouldBeEqualToString('input.value', '12:01:56'); 161 shouldBeEqualToString('input.value', '12:01:56');
162 keyDown('rightArrow'); 162 keyDown('rightArrow');
163 keyDown('leftArrow'); 163 keyDown('leftArrow');
164 keyDown('2'); 164 keyDown('2');
165 shouldBeEqualToString('input.value', '12:02:56'); 165 shouldBeEqualToString('input.value', '12:02:56');
166 166
167 // The tests in the following block fail on platforms without the 167 // The tests in the following block fail on platforms without the
168 // lang-attribute-aware-form-control-UI feature. 168 // lang-attribute-aware-form-control-UI feature.
169 input.setAttribute("lang", "he-il"); 169 input.setAttribute("lang", "he-il");
170 beginTest('RTL Left/Right keys', '04:56'); 170 beginTest('RTL Left/Right keys', '04:56');
171 keyDown('1'); // -> 56:[01] 171 keyDown('1'); // -> [01]:56
172 shouldBeEqualToString('input.value', '01:56'); 172 shouldBeEqualToString('input.value', '01:56');
173 keyDown('leftArrow'); // -> [56]:01 173 keyDown('rightArrow'); // -> 01:[56]
174 keyDown('2'); // -> [02]:01 174 keyDown('2'); // -> 01:[02]
175 shouldBeEqualToString('input.value', '01:02'); 175 shouldBeEqualToString('input.value', '01:02');
176 keyDown('rightArrow'); // -> 02:[01] 176 keyDown('leftArrow'); // -> [01]:02
177 keyDown('3'); // -> 01:[03] 177 keyDown('3'); // -> [03]:02
178 shouldBeEqualToString('input.value', '03:02'); 178 shouldBeEqualToString('input.value', '03:02');
179 input.removeAttribute("lang"); 179 input.removeAttribute("lang");
180 </script> 180 </script>
181 <script src="../../js/resources/js-test-post.js"></script> 181 <script src="../../js/resources/js-test-post.js"></script>
182 </body> 182 </body>
183 </html> 183 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698