Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / forms / checkbox-default-value.html
blob278a47883f670ee6328de7fca313b4f3deb76e5d
1 <head>
2 <script src="../../resources/js-test.js"></script>
3 </head>
4 <body>
5 <div id="console"></div>
6 <script>
7 var el = document.createElement("input");
8 el.setAttribute("type", "checkbox");
9 shouldBe('el.value', '"on"');
10 shouldBe('el.setAttribute("value", "foo"); el.value', '"foo"');
11 shouldBe('el.checked = true; el.value', '"foo"');
12 shouldBe('el.removeAttribute("value"); el.value', '"on"');
13 shouldBe('el.value = "foo"; el.getAttribute("value")', '"foo"');
14 </script>
15 </body>