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

Unified Diff: LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.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: Created 7 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.html
diff --git a/LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.html b/LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.html
index 3cf5913fc0bb427270ef6ae0dfe72525855c4f8c..3d4a7baa2a10fbd032c047f4081e9ac243cf4103 100644
--- a/LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.html
+++ b/LayoutTests/fast/forms/calendar-picker/calendar-picker-with-step.html
@@ -9,15 +9,17 @@
<p id="description"></p>
<div id="console"></div>
-<input type=date id=date value="2011-05-01" step="9">
+<input type=date id=date value="2011-05-02" step="9">
+<input type=date id="date-bare" step="9">
<script>
description('Test if step limits available dates in calendar picker.');
-openPicker(document.getElementById('date'), test1);
+document.getElementById('date-bare').value="2011-05-01" ;
yosin_UTC9 2013/11/25 01:26:41 nit: Please use single-quote to avoid mixing singl
sof 2013/11/26 17:59:05 Done.
+openPicker(document.getElementById('date-bare'), test1);
function test1() {
- debug("Step without min.");
+ debug("Step without value or min attributes.");
shouldBeEqualToString('availableDayCells()', '2011-05-08,2011-05-17,2011-05-26,2011-06-04');
// Close popup
@@ -26,13 +28,26 @@ function test1() {
}
function test1AfterClose() {
+ openPicker(document.getElementById('date'), test2);
+}
+
+function test2() {
+ debug("Step without min.");
+ shouldBeEqualToString('availableDayCells()', '2011-05-02,2011-05-11,2011-05-20,2011-05-29');
+
+ // Close popup
+ eventSender.keyDown('\x1B');
+ waitUntilClosing(test2AfterClose);
+}
+
+function test2AfterClose() {
document.getElementById('date').min = "2011-05-01";
yosin_UTC9 2013/11/25 01:26:41 nit: Please use single-quote to avoid mixing singl
sof 2013/11/26 17:59:05 Done.
// Reopen popup
- openPicker(document.getElementById('date'), test2);
+ openPicker(document.getElementById('date'), test3);
}
-function test2() {
+function test3() {
debug("Step when min is set.");
shouldBeEqualToString('availableDayCells()', '2011-05-01,2011-05-10,2011-05-19,2011-05-28');
finishJSTest();

Powered by Google App Engine
This is Rietveld 408576698