2 <script src=
"../../resources/js-test.js"></script>
5 <div id=
"console"></div>
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"');