OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <script src="../resources/picker-common.js"></script> |
| 3 <select> |
| 4 <option value="1" selected></option> |
| 5 <option value="2"></option> |
| 6 </select> |
| 7 <script> |
| 8 addEventListener('load', function() { |
| 9 // This test passes if the menu dropdown is drawn attached to the |
| 10 // <select> box. This is a test for crbug.com/638671. |
| 11 if (window.testRunner) { |
| 12 testRunner.waitUntilDone(); |
| 13 testRunner.dumpAsTextWithPixelResults(); |
| 14 } |
| 15 |
| 16 window.moveBy(400, 400); |
| 17 window.resizeBy(2000, 2000); |
| 18 |
| 19 // Wait a frame so that the move has a chance to be ack'd by the |
| 20 // browser. |
| 21 window.requestAnimationFrame(function() { |
| 22 var select = document.getElementsByTagName('select')[0]; |
| 23 select.focus(); |
| 24 eventSender.keyDown("ArrowDown", ["altKey"]); |
| 25 testRunner.notifyDone(); |
| 26 }); |
| 27 }); |
| 28 </script> |
OLD | NEW |