| OLD | NEW |
| 1 <head> | 1 <head> |
| 2 <script src="../../js/resources/js-test-pre.js"></script> | 2 <script src="../../../resources/js-test.js"></script> |
| 3 </head> | 3 </head> |
| 4 <body> | 4 <body> |
| 5 <div id="console"></div> | 5 <div id="console"></div> |
| 6 <script> | 6 <script> |
| 7 var el = document.createElement("input"); | 7 var el = document.createElement("input"); |
| 8 el.setAttribute("type", "radio"); | 8 el.setAttribute("type", "radio"); |
| 9 shouldBe('el.value', '"on"'); | 9 shouldBe('el.value', '"on"'); |
| 10 shouldBe('el.setAttribute("value", "foo"); el.value', '"foo"'); | 10 shouldBe('el.setAttribute("value", "foo"); el.value', '"foo"'); |
| 11 shouldBe('el.checked = true; el.value', '"foo"'); | 11 shouldBe('el.checked = true; el.value', '"foo"'); |
| 12 shouldBe('el.removeAttribute("value"); el.value', '"on"'); | 12 shouldBe('el.removeAttribute("value"); el.value', '"on"'); |
| 13 shouldBe('el.value = "foo"; el.getAttribute("value")', '"foo"'); | 13 shouldBe('el.value = "foo"; el.getAttribute("value")', '"foo"'); |
| 14 </script> | 14 </script> |
| 15 </body> | 15 </body> |
| OLD | NEW |