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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: LayoutTests/fast/events/mouse-event-buttons-attribute.html
diff --git a/LayoutTests/fast/events/mouse-event-buttons-attribute.html b/LayoutTests/fast/events/mouse-event-buttons-attribute.html
new file mode 100644
index 0000000000000000000000000000000000000000..b6f0e76567e818df606922ad718a0517ff77987a
--- /dev/null
+++ b/LayoutTests/fast/events/mouse-event-buttons-attribute.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<script src="../../resources/js-test.js"></script>
+<script>
+
+if (window.testRunner)
+ testRunner.waitUntilDone();
Rick Byers 2014/11/14 19:48:09 eventSender works synchronously, you can simplify
zino 2014/11/18 14:19:35 Done.
+
+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
+ if (window.eventSender) {
+ window.result = event.buttons;
+ shouldBe('result', '3');
+ } else {
+ debug('event.buttons = ' + event.buttons);
+ }
+
+ if (window.testRunner)
+ testRunner.notifyDone();
+}, false);
+
+if (window.eventSender) {
+ eventSender.mouseMoveTo(10, 10);
+ eventSender.mouseDown(1, ['leftButton', 'rightButton']);
+}
+
+</script>
« 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