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

Unified Diff: third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js

Issue 1372043002: update-w3c-deps import using blink 0131ca248edfe6c594fa8a6e5780f55c0f4d01eb: (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebaseline Created 5 years, 3 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/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
diff --git a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
index 2ff425166420c7d852d643ed1a300b74141a5556..dfd0d08f17c0fbbbf8a2dc3749d64dfbbeb3cd96 100644
--- a/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
+++ b/third_party/WebKit/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
@@ -229,8 +229,8 @@ var validator = {
assert_true(ctl.reportValidity(), "The reportValidity method should be true.");
assert_false(eventFired, "The invalid event should not be fired.");
} else {
- assert_true(eventFired, "The invalid event should be fired.");
assert_false(ctl.reportValidity(), "The reportValidity method should be false.");
+ assert_true(eventFired, "The invalid event should be fired.");
}
}, data.name);
@@ -262,8 +262,20 @@ var validator = {
},
set_conditions: function (ctl, obj) {
- ["required", "pattern", "step", "max", "min", "maxlength",
- "value", "multiple", "checked", "selected"].forEach(function(item) {
+ [
+ "checked",
+ "disabled",
+ "max",
+ "maxlength",
+ "min",
+ "minlength",
+ "multiple",
+ "pattern",
+ "required",
+ "selected",
+ "step",
+ "value"
+ ].forEach(function(item) {
ctl.removeAttribute(item);
});
for (var attr in obj) {

Powered by Google App Engine
This is Rietveld 408576698