OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <script src="../resources/common.js"></script> |
| 5 <style> |
| 6 select {background-color: red; } |
| 7 </style> |
| 8 </head> |
| 9 <body> |
| 10 <select disabled id="test" size=4"> |
| 11 <option selected>foo1</option> |
| 12 <option>foo2</option> |
| 13 <option>foo3</option> |
| 14 <option>foo4</option> |
| 15 <option>foo5</option> |
| 16 </select> |
| 17 |
| 18 <div id="result">Success if selection did not change.</div> |
| 19 <div id="selection"></div> |
| 20 <script> |
| 21 if (window.testRunner) { |
| 22 testRunner.waitUntilDone(); |
| 23 } |
| 24 |
| 25 if (window.eventSender) { |
| 26 eventSender.dragMode = false; |
| 27 mouseMoveToIndexInListbox(0, 'test'); |
| 28 eventSender.mouseDown(); |
| 29 mouseMoveToIndexInListbox(1, 'test'); |
| 30 mouseMoveToIndexInListbox(2, 'test'); |
| 31 setTimeout(function() { |
| 32 mouseMoveToIndexInListbox(3, 'test'); |
| 33 testRunner.notifyDone(); |
| 34 }, 100); |
| 35 } |
| 36 </script> |
| 37 </html> |
| 38 |
OLD | NEW |