OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <body> | |
4 | |
5 <select id="multiselect" multiple="multiple"> | |
6 <option id="optiona">a</option> | |
7 <option>b</option> | |
8 </select> | |
9 <input id="selectable"> | |
10 | |
11 <script> | |
12 if (window.testRunner) | |
13 window.testRunner.dumpAsText(); | |
14 | |
15 var selectable = document.getElementById('selectable'); | |
16 var multiselect = document.getElementById('multiselect'); | |
17 selectable.focus(); | |
18 selectable.onblur = function() { | |
19 multiselect.style.display='none'; | |
20 document.write('PASS'); | |
21 }; | |
22 | |
23 if (window.eventSender) { | |
24 eventSender.mouseMoveTo(multiselect.offsetLeft + 5, multiselect.offsetTop +
5); | |
25 eventSender.mouseDown(); | |
26 eventSender.mouseUp(); | |
27 } else { | |
28 document.write("To manually test, click on the 'a' option"); | |
29 } | |
30 </script> | |
31 | |
32 </body> | |
33 </html> | |
OLD | NEW |