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> |