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

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

Issue 1344233004: update-w3c-deps import using blink 41e709df01f60521d3c9786d319cdc1690633151: (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Updated -expected 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: LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
diff --git a/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js b/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
index 12a88c1fc6eedc2ec71b1dc773dc779eb70a85d8..2ff425166420c7d852d643ed1a300b74141a5556 100644
--- a/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
+++ b/LayoutTests/imported/web-platform-tests/html/semantics/forms/constraints/support/validator.js
@@ -273,14 +273,16 @@ var validator = {
},
set_dirty: function(ctl) {
- document.disgnMode = "on";
+ document.designMode = "on";
ctl.focus();
var old_value = ctl.value;
ctl.value = "a";
ctl.value = old_value;
- ctl.setSelectionRange(ctl.value.length, ctl.value.length);
+ if (ctl.type !== 'email') {
+ ctl.setSelectionRange(ctl.value.length, ctl.value.length);
+ }
document.execCommand("Delete");
- document.disgnMode = "off";
+ document.designMode = "off";
},
pre_check: function(ctl, item) {

Powered by Google App Engine
This is Rietveld 408576698