| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <script src="../js/resources/js-test-pre.js"></script> | 2 <script src="../js/resources/js-test-pre.js"></script> |
| 3 <iframe src="data:text/html,"></iframe> | 3 <iframe src="data:text/html,"></iframe> |
| 4 <button type="button">Button</button> | 4 <button type="button">Button</button> |
| 5 <script> | 5 <script> |
| 6 description('Mousedown without mouseup in a sub frame should not confuse a click
in another frame.'); | 6 description('Mousedown without mouseup in a sub frame should not confuse a click
in another frame.'); |
| 7 jsTestIsAsync = true; | 7 jsTestIsAsync = true; |
| 8 window.onload = function() { | 8 window.onload = function() { |
| 9 var button = document.querySelector('button'); | 9 var button = document.querySelector('button'); |
| 10 button.addEventListener('mousedown', function(event) { | 10 button.addEventListener('mousedown', function(event) { |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 // Click on the button in the main document. | 22 // Click on the button in the main document. |
| 23 eventSender.mouseMoveTo(button.offsetLeft + button.offsetWidth / 2, button.o
ffsetTop + button.offsetHeight / 2); | 23 eventSender.mouseMoveTo(button.offsetLeft + button.offsetWidth / 2, button.o
ffsetTop + button.offsetHeight / 2); |
| 24 eventSender.mouseDown(0); | 24 eventSender.mouseDown(0); |
| 25 setTimeout(function() { | 25 setTimeout(function() { |
| 26 testFailed('Click event was not dispatched.'); | 26 testFailed('Click event was not dispatched.'); |
| 27 finishJSTest(); | 27 finishJSTest(); |
| 28 }, 100); | 28 }, 100); |
| 29 eventSender.mouseUp(0); | 29 eventSender.mouseUp(0); |
| 30 } | 30 } |
| 31 </script> | 31 </script> |
| 32 <script src="../js/resources/js-test-post.js"></script> | |
| OLD | NEW |