5 var sl
= document
.getElementById('sl');
7 document
.execCommand("SelectAll");
8 if (!document
.getElementById('o1').selected
&& !document
.getElementById('o2').selected
&& !document
.getElementById('o3').selected
)
11 log("Test 1 Failed. SelectAll should not change a single-select list box.");
14 document
.execCommand("SelectAll");
15 if (document
.getElementById('o1').selected
&& document
.getElementById('o2').selected
&& document
.getElementById('o3').selected
)
18 log("Test 2 Failed. SelectAll should select all items in a multi-select list box.");
22 if (window
.testRunner
)
23 testRunner
.dumpAsText();
27 var res
= document
.getElementById('res');
28 res
.innerHTML
= res
.innerHTML
+ msg
+ "<br>";
32 <body onload=
"test()">
33 This tests that select all works on options in a list box.
<br>
34 <select id=
"sl" size=
5>