OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <html> | 2 <html> |
3 <head> | 3 <head> |
4 <meta charset="utf-8"> | 4 <meta charset="utf-8"> |
5 <script src="../js/resources/js-test-pre.js"></script> | 5 <script src="../../resources/js-test.js"></script> |
6 </head> | 6 </head> |
7 <body> | 7 <body> |
8 <input type="text"/> | 8 <input type="text"/> |
9 <script> | 9 <script> |
10 | 10 |
11 description("This test checks that changing the 'type' attribute on an input ele
ment without a 'value' attribute doesn't crash."); | 11 description("This test checks that changing the 'type' attribute on an input ele
ment without a 'value' attribute doesn't crash."); |
12 | 12 |
13 var inputElement = document.getElementsByTagName("input")[0]; | 13 var inputElement = document.getElementsByTagName("input")[0]; |
14 | 14 |
15 shouldBe("inputElement.type", "'text'"); | 15 shouldBe("inputElement.type", "'text'"); |
16 inputElement.type = 'submit'; | 16 inputElement.type = 'submit'; |
17 shouldBe("inputElement.type", "'submit'"); | 17 shouldBe("inputElement.type", "'submit'"); |
18 | 18 |
19 document.body.removeChild(inputElement); | 19 document.body.removeChild(inputElement); |
20 | 20 |
21 </script> | 21 </script> |
22 </body> | 22 </body> |
23 </html> | 23 </html> |
OLD | NEW |