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

Side by Side Diff: LayoutTests/platform/chromium/fast/forms/calendar-picker/calendar-picker-datetimelocal.html

Issue 14120003: Move LayoutTests from platform/chromium/... to generic location (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <script src="../../../../../fast/js/resources/js-test-pre.js"></script>
5 <script src="../../../../../fast/forms/resources/picker-common.js"></script>
6 <script src="resources/calendar-picker-common.js"></script>
7 </head>
8 <body>
9 <p id="description"></p>
10 <div id="console"></div>
11 <input type=datetime-local id=datetimelocal value="2011-12-31T12:53:45">
12 <script>
13 description("Tests if calendar picker works for datetime-local as expected.");
14
15 debug('Check that page popup doesn\'t exist at first.');
16 shouldBeNull('document.getElementById("mock-page-popup")');
17
18 openPicker(document.getElementById('datetimelocal'), test);
19
20 function test() {
21 shouldBeEqualToString('selectedValue()', '2011-12-31');
22 shouldBeEqualToString('highlightedValue()', '2011-12-31');
23
24 eventSender.keyDown('rightArrow');
25 shouldBeEqualToString('highlightedValue()', '2012-01-01');
26
27 eventSender.keyDown('\n');
28 shouldBeEqualToString('selectedValue()', '2012-01-01');
29 shouldBeEqualToString('document.getElementById("datetimelocal").value', '201 2-01-01T12:53:45');
30
31 finishJSTest();
32 }
33
34 </script>
35 <script src="../../../../../fast/js/resources/js-test-post.js"></script>
36 </body>
37 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698