OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <head> | 2 <head> |
3 <script src="../../js/resources/js-test-pre.js"></script> | 3 <script src="../../../resources/js-test.js"></script> |
4 </head> | 4 </head> |
5 <body> | 5 <body> |
6 | 6 |
7 <select id="multiselect" multiple="multiple" style="margin-top: 20px;"> | 7 <select id="multiselect" multiple="multiple" style="margin-top: 20px;"> |
8 <option>item a</option> | 8 <option>item a</option> |
9 <option>item b</option> | 9 <option>item b</option> |
10 </select> | 10 </select> |
11 | 11 |
12 <script> | 12 <script> |
13 | 13 |
14 var multiselect = document.getElementById('multiselect'); | 14 var multiselect = document.getElementById('multiselect'); |
15 | 15 |
16 if (window.eventSender) { | 16 if (window.eventSender) { |
17 eventSender.mouseMoveTo(multiselect.offsetLeft + 10, multiselect.offsetTop -
10); | 17 eventSender.mouseMoveTo(multiselect.offsetLeft + 10, multiselect.offsetTop -
10); |
18 eventSender.mouseDown(); | 18 eventSender.mouseDown(); |
19 eventSender.mouseMoveTo(multiselect.offsetLeft + 10, multiselect.offsetTop +
10); | 19 eventSender.mouseMoveTo(multiselect.offsetLeft + 10, multiselect.offsetTop +
10); |
20 eventSender.mouseUp(); | 20 eventSender.mouseUp(); |
21 shouldBe("multiselect.selectedIndex", "-1"); | 21 shouldBe("multiselect.selectedIndex", "-1"); |
22 } else { | 22 } else { |
23 document.write("To manually test, press left button down above the select, t
hen move the mouse down over the select."); | 23 document.write("To manually test, press left button down above the select, t
hen move the mouse down over the select."); |
24 } | 24 } |
25 </script> | 25 </script> |
26 </body> | 26 </body> |
27 </html> | 27 </html> |
OLD | NEW |