OLD | NEW |
---|---|
(Empty) | |
1 <!DOCTYPE html> | |
2 <script src="../../resources/js-test.js"></script> | |
3 <script> | |
4 | |
5 if (window.testRunner) | |
6 testRunner.waitUntilDone(); | |
Rick Byers
2014/11/14 19:48:09
eventSender works synchronously, you can simplify
zino
2014/11/18 14:19:35
Done.
| |
7 | |
8 window.addEventListener('mousedown', function() { | |
Rick Byers
2014/11/14 19:48:09
Please add handlers for the other event types too
zino
2014/11/18 14:19:35
Done.
Rick Byers
2014/11/18 20:29:18
The spec (http://www.w3.org/TR/DOM-Level-3-Events/
zino
2014/11/24 13:07:07
Okay, I've addressed the bug.
Rick Byers
2014/11/25 17:44:27
I was thinking this would be addressed in chromium
| |
9 if (window.eventSender) { | |
10 window.result = event.buttons; | |
11 shouldBe('result', '3'); | |
12 } else { | |
13 debug('event.buttons = ' + event.buttons); | |
14 } | |
15 | |
16 if (window.testRunner) | |
17 testRunner.notifyDone(); | |
18 }, false); | |
19 | |
20 if (window.eventSender) { | |
21 eventSender.mouseMoveTo(10, 10); | |
22 eventSender.mouseDown(1, ['leftButton', 'rightButton']); | |
23 } | |
24 | |
25 </script> | |
OLD | NEW |