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

Side by Side Diff: LayoutTests/fast/forms/date-multiple-fields/date-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
« no previous file with comments | « no previous file | LayoutTests/fast/forms/month-multiple-fields/month-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="../../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 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 keyDown('2'); // -> 12/[02]/2012 189 keyDown('2'); // -> 12/[02]/2012
190 shouldBeEqualToString('input.value', '2012-12-02'); 190 shouldBeEqualToString('input.value', '2012-12-02');
191 191
192 // The tests in the following block fail on platforms without the 192 // The tests in the following block fail on platforms without the
193 // lang-attribute-aware-form-control-UI feature. 193 // lang-attribute-aware-form-control-UI feature.
194 input.setAttribute("lang", "he-il"); 194 input.setAttribute("lang", "he-il");
195 beginTest('RTL Left/Right keys', '2012-09-28'); 195 beginTest('RTL Left/Right keys', '2012-09-28');
196 // 2012/09/[28] 196 // 2012/09/[28]
197 keyDown('1'); // -> 2012/09/[01] 197 keyDown('1'); // -> 2012/09/[01]
198 shouldBeEqualToString('input.value', '2012-09-01'); 198 shouldBeEqualToString('input.value', '2012-09-01');
199 keyDown('leftArrow'); // -> 2012/[09]/01 199 keyDown('rightArrow'); // -> 2012/[09]/01
200 keyDown('2'); // -> [2012]/02/01 200 keyDown('2'); // -> [2012]/02/01
201 shouldBeEqualToString('input.value', '2012-02-01'); 201 shouldBeEqualToString('input.value', '2012-02-01');
202 keyDown('rightArrow'); // -> 2012/[02]/01 202 keyDown('leftArrow'); // -> 2012/[02]/01
203 keyDown('3'); // -> [2012]/03/01 203 keyDown('3'); // -> [2012]/03/01
204 shouldBeEqualToString('input.value', '2012-03-01'); 204 shouldBeEqualToString('input.value', '2012-03-01');
205 input.removeAttribute("lang"); 205 input.removeAttribute("lang");
206 206
207 beginTest('Disabled/readonly', '2012-10-08'); 207 beginTest('Disabled/readonly', '2012-10-08');
208 input.disabled = true; 208 input.disabled = true;
209 keyDown('upArrow'); // 10/08/2012 209 keyDown('upArrow'); // 10/08/2012
210 shouldBeEqualToString('input.value', '2012-10-08'); 210 shouldBeEqualToString('input.value', '2012-10-08');
211 input.disabled = false; 211 input.disabled = false;
212 input.focus(); 212 input.focus();
213 keyDown('upArrow'); // [11]/08/2012 213 keyDown('upArrow'); // [11]/08/2012
214 shouldBeEqualToString('input.value', '2012-11-08'); 214 shouldBeEqualToString('input.value', '2012-11-08');
215 input.readOnly = true; 215 input.readOnly = true;
216 keyDown('upArrow'); // 11/08/2012 216 keyDown('upArrow'); // 11/08/2012
217 shouldBeEqualToString('input.value', '2012-11-08'); 217 shouldBeEqualToString('input.value', '2012-11-08');
218 input.readOnly = false; 218 input.readOnly = false;
219 input.focus(); 219 input.focus();
220 keyDown('upArrow'); // [12]/08/2012 220 keyDown('upArrow'); // [12]/08/2012
221 shouldBeEqualToString('input.value', '2012-12-08'); 221 shouldBeEqualToString('input.value', '2012-12-08');
222 222
223 </script> 223 </script>
224 <script src="../../js/resources/js-test-post.js"></script> 224 <script src="../../js/resources/js-test-post.js"></script>
225 </body> 225 </body>
226 </html> 226 </html>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/forms/month-multiple-fields/month-multiple-fields-keyboard-events.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698