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

Side by Side Diff: third_party/WebKit/LayoutTests/fast/forms/calendar-picker/calendar-picker-should-not-change-datetimelocal-time.html

Issue 2100243002: Remove non-standardize key code names from event_sender. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix inspector tests that were missed by sed Created 4 years, 5 months 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="../../../resources/js-test.js"></script> 4 <script src="../../../resources/js-test.js"></script>
5 <script src="../../forms/resources/picker-common.js"></script> 5 <script src="../../forms/resources/picker-common.js"></script>
6 <script src="../resources/common.js"></script> 6 <script src="../resources/common.js"></script>
7 <script src="resources/calendar-picker-common.js"></script> 7 <script src="resources/calendar-picker-common.js"></script>
8 </head> 8 </head>
9 <body> 9 <body>
10 <script> 10 <script>
11 description('Test for crbug.com/271451. The calendar picker should not change th e time part of datetime-local field.'); 11 description('Test for crbug.com/271451. The calendar picker should not change th e time part of datetime-local field.');
12 12
13 var input = document.createElement('input'); 13 var input = document.createElement('input');
14 input.type = 'datetime-local'; 14 input.type = 'datetime-local';
15 getElementByPseudoId(internals.youngestShadowRoot(input), '-webkit-datetime-edit ').setAttribute('pattern', 'yyyy-MM-dd HH:mm'); 15 getElementByPseudoId(internals.youngestShadowRoot(input), '-webkit-datetime-edit ').setAttribute('pattern', 'yyyy-MM-dd HH:mm');
16 document.body.appendChild(input); 16 document.body.appendChild(input);
17 17
18 input.value = '1999-07-31T12:59'; 18 input.value = '1999-07-31T12:59';
19 19
20 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31 12:59' ); 20 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31 12:59' );
21 openPicker(input, function() { 21 openPicker(input, function() {
22 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31 12 :59'); 22 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-07-31 12 :59');
23 23
24 eventSender.keyDown('rightArrow'); 24 eventSender.keyDown('ArrowRight');
25 shouldBeEqualToString('highlightedValue()', '1999-08-01'); 25 shouldBeEqualToString('highlightedValue()', '1999-08-01');
26 26
27 removeCommitDelay(); 27 removeCommitDelay();
28 eventSender.keyDown('\n'); 28 eventSender.keyDown('Enter');
29 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-08-01 12 :59'); 29 shouldBeEqualToString('getUserAgentShadowTextContent(input)', '1999-08-01 12 :59');
30 finishJSTest(); 30 finishJSTest();
31 }); 31 });
32 32
33 </script> 33 </script>
34 </body> 34 </body>
35 </html> 35 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698