Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(13)

Side by Side Diff: LayoutTests/fast/events/mouse-event-buttons-attribute.html

Issue 727593003: Implement MouseEvent buttons attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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>
OLDNEW
« no previous file with comments | « no previous file | LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt » ('j') | Source/core/events/WheelEvent.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698