OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../../../resources/testharness.js"></script> |
| 4 <script src="../../../resources/testharnessreport.js"></script> |
| 5 <div id="log"></div> |
| 6 <select id=t><option>Option 1</option></select> |
| 7 <script> |
| 8 test(function() { |
| 9 var mevent = document.createEvent('MouseEvents'); |
| 10 mevent.initMouseEvent('mousedown', true, true, window); |
| 11 var select = document.querySelector('select'); |
| 12 select.offsetTop; |
| 13 select.dispatchEvent(mevent); |
| 14 assert_false(internals.isSelectPopupVisible(select)); |
| 15 }, 'SELECT element should not open a popup menu by a synthetic event.'); |
| 16 </script> |
| 17 </body> |
OLD | NEW |