Inputs Date

Summary

Harness status: OK

Found 6 tests

Details

ResultTest NameMessage
Passdate type support on input element
Asserts run
Pass
assert_equals("date", "date")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:27:9)
PassThe value attribute, if specified and not empty, must have a value that is a valid date string.
Asserts run
Pass
assert_equals("2011-11-01", "2011-11-01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:31:9)
Pass
assert_equals("1999-01-31", "1999-01-31")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:32:9)
Pass
assert_equals("2099-01-31", "2099-01-31")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:33:9)
PassThe min attribute must be reflected verbatim by the min property.
Asserts run
Pass
assert_equals("2011-01-01", "2011-01-01")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:37:9)
Pass
assert_equals("1999-1", "1999-1")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:38:9)
PassThe max attribute must be reflected verbatim by the max property.
Asserts run
Pass
assert_equals("2011-12-31", "2011-12-31")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:42:9)
Pass
assert_equals("2011-12-31", "2011-12-31")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:43:9)
Pass
assert_equals("2011-13-162-777", "2011-13-162-777")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:44:9)
PassUser agents must not allow the user to set the value to a non-empty string that is not a valid date string.
Asserts run
Pass
assert_equals("", "")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:48:9)
PassNumber of days
Asserts run
Pass
assert_equals("2014-01-31", "2014-01-31", "January has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "January has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-03-31", "2014-03-31", "March has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "March has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-05-31", "2014-05-31", "May has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "May has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-07-31", "2014-07-31", "July has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "July has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-08-31", "2014-08-31", "August has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "August has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-10-31", "2014-10-31", "October has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "October has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-12-31", "2014-12-31", "December has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "December has 31 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-04-30", "2014-04-30", "April has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "April has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-06-30", "2014-06-30", "June has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "June has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-09-30", "2014-09-30", "September has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "September has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-11-30", "2014-11-30", "November has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "November has 30 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2014-02-28", "2014-02-28", "2014 is not a leap year: February has 28 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("", "", "2014 is not a leap year: February has 28 days: value should be empty")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)
Pass
assert_equals("2016-02-29", "2016-02-29", "2016 is a leap year: February has 29 days")
    at Test.<anonymous> ( /html/semantics/forms/the-input-element/date.html:85:11)