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

Unified Diff: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html

Issue 2657583002: Import wpt@cf62b859e6b890abc34f8140d185ba91df95c5b6 (Closed)
Patch Set: Modify TestExpectations or download new baselines for tests. Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html
diff --git a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html
index 2e7a85ea95655581781015699018bb052e38c37e..6ae5b8aeb3cabe4e6b62fa6a3f414da6e110e627 100644
--- a/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html
+++ b/third_party/WebKit/LayoutTests/external/wpt/html/semantics/forms/the-input-element/range.html
@@ -71,24 +71,30 @@
}
);
- // HTML5 spec says the default vaules of min and max attributes are 0 and 100 respectively,
- // however, Chrome, Opera and Firefox would not give any default value at all...
test(
function() {
- assert_equals(document.getElementById('illegal_min_and_max').min, "0")
+ assert_equals(document.getElementById('illegal_min_and_max').min, "ab")
},
"Illegal value of min attribute",
{
- "help" : "https://html.spec.whatwg.org/multipage/#range-state-(type=range)"
+ "help" : [
+ "https://html.spec.whatwg.org/multipage/#dom-input-min",
+ "https://html.spec.whatwg.org/multipage/#range-state-(type=range)"
+ ]
}
);
test(
function() {
- assert_equals(document.getElementById('illegal_min_and_max').max, "100")
+ assert_equals(document.getElementById('illegal_min_and_max').max, "f")
},
"Illegal value of max attribute",
- { "help" : "https://html.spec.whatwg.org/multipage/#range-state-(type=range)" }
+ {
+ "help" : [
+ "https://html.spec.whatwg.org/multipage/#dom-input-max",
+ "https://html.spec.whatwg.org/multipage/#range-state-(type=range)"
+ ]
+ }
);
test(
@@ -103,10 +109,15 @@
test(
function() {
- assert_equals(document.getElementById('illegal_value_and_step').step, "1")
+ assert_equals(document.getElementById('illegal_value_and_step').step, "xyz")
},
- "Converting an illegal string to the default step",
- { "help" : "https://html.spec.whatwg.org/multipage/#range-state-(type=range)" }
+ "Illegal value of step attribute",
+ {
+ "help" : [
+ "https://html.spec.whatwg.org/multipage/#dom-input-step",
+ "https://html.spec.whatwg.org/multipage/#range-state-(type=range)"
+ ]
+ }
);
test(
@@ -131,7 +142,7 @@
test(
function() {
- assert_equals(document.getElementById('empty_attributes').min, "0")
+ assert_equals(document.getElementById('empty_attributes').min, "")
},
"default value of min attribute in input type=range",
{ "help" : "https://html.spec.whatwg.org/multipage/#dom-input-min" }
@@ -139,7 +150,7 @@
test(
function() {
- assert_equals(document.getElementById('empty_attributes').max, "100")
+ assert_equals(document.getElementById('empty_attributes').max, "")
},
"default value of max attribute in input type=range",
{

Powered by Google App Engine
This is Rietveld 408576698