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

Side by Side Diff: LayoutTests/fast/forms/suggestion-picker/month-suggestion-picker-step-attribute.html

Issue 83413002: Derive the step base for an input element as (now) specified. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Perform step base derivation via InputType::findStepBase() instead 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
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/suggestion-picker-common.js"></script> 6 <script src="resources/suggestion-picker-common.js"></script>
7 </head> 7 </head>
8 <body style="background-color: #bbbbbb;"> 8 <body style="background-color: #bbbbbb;">
9 <p id="description"></p> 9 <p id="description"></p>
10 <div id="console"></div> 10 <div id="console"></div>
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
54 54
55 function test1AfterClosing() { 55 function test1AfterClosing() {
56 dateElement.step = 5; 56 dateElement.step = 5;
57 openPicker(dateElement, test2); 57 openPicker(dateElement, test2);
58 } 58 }
59 59
60 function test2() { 60 function test2() {
61 popupWindow.focus(); 61 popupWindow.focus();
62 62
63 shouldBe('entryValues().length', '3'); 63 shouldBe('entryValues().length', '3');
64 shouldBeEqualToString('entryValues()[0]', '2012-02'); 64 shouldBeEqualToString('entryValues()[0]', '2012-01');
65 shouldBeEqualToString('entryValues()[1]', '2012-07'); 65 shouldBeEqualToString('entryValues()[1]', '2012-06');
66 shouldBeEqualToString('entryValues()[2]', '@openCalendarPicker'); 66 shouldBeEqualToString('entryValues()[2]', '@openCalendarPicker');
67 67
68 eventSender.keyDown('\x1B'); // Close picker. 68 eventSender.keyDown('\x1B'); // Close picker.
69 waitUntilClosing(test2AfterClosing); 69 waitUntilClosing(test2AfterClosing);
70 } 70 }
71 71
72 function test2AfterClosing() { 72 function test2AfterClosing() {
73 dateElement.step = 30; 73 dateElement.step = 30;
74 openPicker(dateElement, test3); 74 openPicker(dateElement, test3);
75 } 75 }
76 76
77 function test3() { 77 function test3() {
78 popupWindow.focus(); 78 popupWindow.focus();
79 79
80 shouldBe('entryValues().length', '2'); 80 shouldBe('entryValues().length', '2');
81 shouldBeEqualToString('entryValues()[0]', '2012-07'); 81 shouldBeEqualToString('entryValues()[0]', '2012-01');
82 shouldBeEqualToString('entryValues()[1]', '@openCalendarPicker'); 82 shouldBeEqualToString('entryValues()[1]', '@openCalendarPicker');
83 83
84 finishJSTest(); 84 finishJSTest();
85 } 85 }
86 86
87 </script> 87 </script>
88 </body> 88 </body>
89 </html> 89 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698