Index: third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html |
diff --git a/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ae8fd8f3acf1192b38f9bdddb29b2b732564491f |
--- /dev/null |
+++ b/third_party/WebKit/LayoutTests/fast/forms/checkbox/checkbox-checked-state-affected-by-default-state.html |
@@ -0,0 +1,19 @@ |
+<!DOCTYPE html> |
+<html> |
+<head> |
+<script src="../../../resources/testharness.js"></script> |
+<script src="../../../resources/testharnessreport.js"></script> |
+</head> |
+<body> |
+<script> |
+test (function() { |
+ var el = document.createElement("input"); |
+ el.setAttribute("type", "checkbox"); |
+ el.defaultChecked = true; |
+ el.checked = true; |
+ el.defaultChecked = false; |
+ assert_true(el.checked); |
+}, "This test check that checked state of checkbox once explicitly set is not affected by default state."); |
+</script> |
+</body> |
+</html> |