JS Test Harness: Make console and description elements optional in the HTML
[WebKit-https.git] / LayoutTests / fast / dom / HTMLFormElement / htmlformelement-indexed-getter.html
1 <html>
2 <head>
3 <link rel="stylesheet" href="../../js/resources/js-test-style.css">
4 <script src="../../js/resources/js-test-pre.js"></script>
5 </head>
6 <body>
7
8 <form id='f'>
9   <input type="radio" name="a" value="a" id="i">HTMLInputElement</input>
10 </form>
11
12 <script>
13 description('This test verifies that elements can be fetched by index from HTMLFormElements.');
14
15 var form = document.getElementById('f');
16 var my_input = document.getElementById('i');
17 shouldBe("form[0]", "my_input");
18 var successfullyParsed = true;
19 </script>
20 <script src="../../js/resources/js-test-post.js"></script>
21 </body>
22 </html>