Commit 8ef6a57f authored by blink-w3c-test-autoroller's avatar blink-w3c-test-autoroller Committed by Commit bot

W3C auto test import CL.

TBR=qyearsley@chromium.org

Review-Url: https://codereview.chromium.org/2340983003
Cr-Commit-Position: refs/heads/master@{#418871}
parent 6fa58d7e
...@@ -1247,6 +1247,7 @@ crbug.com/490015 virtual/stable/http/tests/navigation/beacon-blob-with-non-simpl ...@@ -1247,6 +1247,7 @@ crbug.com/490015 virtual/stable/http/tests/navigation/beacon-blob-with-non-simpl
crbug.com/490015 virtual/stable/http/tests/navigation/same-and-different-back.html [ Skip ] crbug.com/490015 virtual/stable/http/tests/navigation/same-and-different-back.html [ Skip ]
# Tests added from W3C auto import bot # Tests added from W3C auto import bot
crbug.com/626703 [ Win10 ] imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-align-self-baseline-vert-001.html [ Failure ] crbug.com/626703 [ Win10 ] imported/csswg-test/vendor-imports/mozilla/mozilla-central-reftests/flexbox/flexbox-baseline-align-self-baseline-vert-001.html [ Failure ]
# Skip the test for drawing text on canvases with no browsing context on Mac. # Skip the test for drawing text on canvases with no browsing context on Mac.
......
CONSOLE WARNING: line 19: The specified value "invalid-month" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 17: The specified value "invalid-month" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 24: The specified value "13-06" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 19: The specified value "13-06" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 28: The specified value "2013-13" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 22: The specified value "2013-13" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
CONSOLE WARNING: line 29: The specified value "2013-00" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12. CONSOLE WARNING: line 23: The specified value "2013-00" does not conform to the required format. The format is "yyyy-MM" where yyyy is year in four or more digits, and MM is 01-12.
This is a testharness.js-based test. This is a testharness.js-based test.
PASS month type support on input element PASS month type support on input element
FAIL The value attribute, if specified and not empty, must have a value that is a valid month string assert_equals: expected "2011-01" but got "1999-01"
FAIL The min attribute, if specified, must have a value that is a valid month string. assert_equals: expected "" but got "invalid_min"
FAIL The max attribute, if specified, must have a value that is a valid month string assert_equals: expected "2099-01" but got "2011-12"
PASS User agents must not allow the user to set the value to a non-empty string that is not a valid month string. PASS User agents must not allow the user to set the value to a non-empty string that is not a valid month string.
PASS Month value can be empty string. PASS Month value can be empty string.
PASS When value attribute has two digits year value, the value,which is invalid, must return empty string. PASS When value attribute has two digits year value, the value,which is invalid, must return empty string.
PASS When value is set with invalid value, the value must return empty string. PASS When value is set with invalid value, the value must return empty string.
FAIL When value is given invalid value to non-empty valid string, the value must be same as before. assert_equals: expected "2013-05" but got ""
PASS When step attribute is given invalid value, it must ignore the invalid value and use defaul value instead. PASS When step attribute is given invalid value, it must ignore the invalid value and use defaul value instead.
PASS Month should be <= 13: If the value of the element is not a valid month string, then set it to the empty string instead. PASS Month should be <= 13: If the value of the element is not a valid month string, then set it to the empty string instead.
PASS Month should be > 0: If the value of the element is not a valid month string, then set it to the empty string instead.> PASS Month should be > 0: If the value of the element is not a valid month string, then set it to the empty string instead.>
......
...@@ -14,16 +14,10 @@ ...@@ -14,16 +14,10 @@
<h1>Inputs Month</h1> <h1>Inputs Month</h1>
<div style="display: none"> <div style="display: none">
<input id="valid" type="month" value="2011-11" min="2011-01" max="2011-12" /> <input id="valid" type="month" value="2011-11" min="2011-01" max="2011-12" />
<input id="too_small_value" type="month" value="1999-01" min="2011-01" max="2011-12"/>
<input id="too_large_value" type="month" value="2099-01" min="2011-01" max="2011-12"/>
<input id="invalid_value" type="month" value="invalid-month" min="2011-01" max="2011-12"/> <input id="invalid_value" type="month" value="invalid-month" min="2011-01" max="2011-12"/>
<input id="invalid_min" type="month" value="2011-01" min="invalid_min" max="2011-12"/>
<input id="invalid_max" type="month" value="2011-01" min="2011-01" max="invalid_max"/>
<input id="min_larger_than_max" type="month" value="2011-01" min="2099-01" max="2011-12"/>
<input id="value_can_be_empty_string" type="month" value="2013-06" /> <input id="value_can_be_empty_string" type="month" value="2013-06" />
<input id="invalid_value_with_two_digits_year" type="month" value="13-06" /> <input id="invalid_value_with_two_digits_year" type="month" value="13-06" />
<input id="invalid_value_is_set" type="month" /> <input id="invalid_value_is_set" type="month" />
<input id="invalid_value_is_set_to_valid_value" type="month" value="2013-05" />
<input id="step_attribute_is_invalid_value" type="month" value="2013-06" step="invalid_step_value" /> <input id="step_attribute_is_invalid_value" type="month" value="2013-06" step="invalid_step_value" />
<input id="invalid_month_too_high" type="month" value="2013-13" /> <input id="invalid_month_too_high" type="month" value="2013-13" />
<input id="invalid_month_too_low" type="month" value="2013-00" /> <input id="invalid_month_too_low" type="month" value="2013-00" />
...@@ -36,23 +30,6 @@ ...@@ -36,23 +30,6 @@
assert_equals(document.getElementById("valid").type, "month") assert_equals(document.getElementById("valid").type, "month")
}, "month type support on input element"); }, "month type support on input element");
test(function() {
assert_equals(document.getElementById("valid").value, "2011-11"),
assert_equals(document.getElementById("too_small_value").value, "2011-01"),
assert_equals(document.getElementById("too_large_value").value, "2011-12")
}, "The value attribute, if specified and not empty, must have a value that is a valid month string");
test(function() {
assert_equals(document.getElementById("valid").min, "2011-01"),
assert_equals(document.getElementById("invalid_min").min, "")
}, "The min attribute, if specified, must have a value that is a valid month string.");
test(function() {
assert_equals(document.getElementById("valid").max, "2011-12"),
assert_equals(document.getElementById("min_larger_than_max").max, "2099-01"),
assert_equals(document.getElementById("invalid_max").max, "")
}, "The max attribute, if specified, must have a value that is a valid month string");
test(function() { test(function() {
assert_equals(document.getElementById("invalid_value").value, "") assert_equals(document.getElementById("invalid_value").value, "")
}, "User agents must not allow the user to set the value to a non-empty string that is not a valid month string."); }, "User agents must not allow the user to set the value to a non-empty string that is not a valid month string.");
...@@ -71,11 +48,6 @@ ...@@ -71,11 +48,6 @@
assert_equals(document.getElementById("invalid_value_is_set").value, "") assert_equals(document.getElementById("invalid_value_is_set").value, "")
}, "When value is set with invalid value, the value must return empty string."); }, "When value is set with invalid value, the value must return empty string.");
test(function() {
document.getElementById("invalid_value_is_set_to_valid_value").value = "invalid value";
assert_equals(document.getElementById("invalid_value_is_set_to_valid_value").value, "2013-05")
}, "When value is given invalid value to non-empty valid string, the value must be same as before.");
test(function() { test(function() {
document.getElementById("step_attribute_is_invalid_value").stepUp(); document.getElementById("step_attribute_is_invalid_value").stepUp();
assert_equals(document.getElementById("step_attribute_is_invalid_value").value, "2013-07") assert_equals(document.getElementById("step_attribute_is_invalid_value").value, "2013-07")
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment