7 testRunner
.dumpAsText();
9 var sl
= document
.getElementById('sl');
10 var no
= new Option();
11 no
.text
= "Test Passed";
12 if (sl
[0].text
== "Test Failed")
14 document
.getElementById('res').innerHTML
= sl
[0].text
;
18 <body onload=
"test()">
19 This tests that you can index into a select element to get and set an option element.
<br>
20 <select id=
"sl" multiple
>
21 <option>Test Failed
</option>