OLD | NEW |
(Empty) | |
| 1 <!DOCTYPE html> |
| 2 <body> |
| 3 <script src="../../../../../resources/js-test.js"></script> |
| 4 <script src="../../../../../fast/forms/resources/common.js"></script> |
| 5 <select> |
| 6 <option>option 1</option> |
| 7 <option>option 2</option> |
| 8 </select> |
| 9 <script> |
| 10 |
| 11 var clickEventCounter = 0; |
| 12 var select = document.querySelector('select'); |
| 13 select.addEventListener('click', function() { clickEventCounter++; }, false); |
| 14 hoverOverElement(select); |
| 15 eventSender.mouseDown(); |
| 16 setTimeout(function() { |
| 17 select.blur(); |
| 18 description('Check if mosuedown without mouseup on a SELECT element dispatch
es a click event.'); |
| 19 shouldBe('clickEventCounter', '1'); |
| 20 finishJSTest(); |
| 21 }, 1); |
| 22 jsTestIsAsync = true; |
| 23 </script> |
| 24 </body> |
OLD | NEW |