OLD | NEW |
1 <html> | 1 <html> |
2 <head> | 2 <head> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 | 6 |
7 <form id='f'> | 7 <form id='f'> |
8 <input type="radio" name="a" value="a" id="i">HTMLInputElement</input> | 8 <input type="radio" name="a" value="a" id="i">HTMLInputElement</input> |
9 </form> | 9 </form> |
10 | 10 |
11 <script> | 11 <script> |
12 description('This test verifies that elements can be fetched by index from HTMLF
ormElements.'); | 12 description('This test verifies that elements can be fetched by index from HTMLF
ormElements.'); |
13 | 13 |
14 var form = document.getElementById('f'); | 14 var form = document.getElementById('f'); |
15 var my_input = document.getElementById('i'); | 15 var my_input = document.getElementById('i'); |
16 shouldBe("form[0]", "my_input"); | 16 shouldBe("form[0]", "my_input"); |
17 </script> | 17 </script> |
18 </body> | 18 </body> |
19 </html> | 19 </html> |
OLD | NEW |