OLD | NEW |
| (Empty) |
1 <html> | |
2 <body> | |
3 | |
4 <select id='s'> | |
5 <option id='o0'>o0</option> | |
6 <option id='o1'>o1</option> | |
7 </select> | |
8 | |
9 <script> | |
10 if (window.layoutTestController) { | |
11 layoutTestController.dumpAsText(); | |
12 } | |
13 | |
14 var select = document.getElementById('s'); | |
15 var options = select.options; | |
16 | |
17 try { | |
18 var o0 = options(0); | |
19 var o1 = options(1); | |
20 if (document.getElementById('o0') == o0 && | |
21 document.getElementById('o1') == o1) { | |
22 document.write('PASS'); | |
23 } else { | |
24 document.write('FAIL'); | |
25 } | |
26 } catch(e) { | |
27 document.write('FAIL: threw exception ' + e); | |
28 } | |
29 </script> | |
30 | |
31 </body> | |
32 </html> | |
OLD | NEW |