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

Unified Diff: third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html

Issue 2417753003: Input element: Fix the dirty value flag after type change. (Closed)
Patch Set: Created 4 years, 2 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
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/input-type-change3-expected.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html
diff --git a/third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html b/third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html
index b400c729df0eba08b679584b7baf4496016f201f..459aae2482565d7b596596b2bf0a47cbc810e1f8 100644
--- a/third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html
+++ b/third_party/WebKit/LayoutTests/fast/forms/input-type-change3.html
@@ -54,4 +54,13 @@ check("uri", "text", "uri");
check("", "text", "");
check("x-unknown", "text", "x-unknown");
shouldBeNull("input.removeAttribute('type'); input.getAttribute('type')");
+
+debug("Check dirty flag behavior");
+input = document.createElement("input");
+input.type = "hidden";
+input.defaultValue = "Default";
+input.type = "text";
+// The dirty flag should be still false, and the defaultValue should be reflected
+// to value.
+shouldBeEqualToString("input.defaultValue = 'UpdatedDefault'; input.value", "UpdatedDefault");
</script>
« no previous file with comments | « no previous file | third_party/WebKit/LayoutTests/fast/forms/input-type-change3-expected.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698