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

Unified Diff: LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt

Issue 727593003: Implement MouseEvent buttons attribute. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: addressed comments 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-expected.txt
diff --git a/LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt b/LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..f355d2e68233fa97db4d64954810b3f34333328e
--- /dev/null
+++ b/LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt
@@ -0,0 +1,58 @@
+MouseEvent::dblclick test [leftButton]
+PASS testSet[i].buttons is 1
Rick Byers 2014/11/25 17:44:27 this should be 0 (like mouseup).
zino 2014/11/28 12:29:28 Done.
+
+MouseEvent::click test [leftButton,rightButton]
+PASS testSet[i].buttons is 3
Rick Byers 2014/11/25 17:44:27 and this should be 2.
zino 2014/11/28 12:29:28 Done.
+
+MouseEvent::mousedown test [leftButton,middleButton,rightButton]
+PASS testSet[i].buttons is 7
+
+MouseEvent::mouseup test [leftButton,middleButton,rightButton] -> [leftButton,rightButton]
+PASS testSet[i].buttons is 3
+
+MouseEvent::mousemove test []
+PASS testSet[i].buttons is 0
+
+MouseEvent::mousemove test [leftButton]
+PASS testSet[i].buttons is 1
+
+MouseEvent::mouseenter test [rightButton,middleButton]
+PASS testSet[i].buttons is 6
+
+MouseEvent::mouseleave test [leftButton,rightButton]
+PASS testSet[i].buttons is 3
+
+MouseEvent::mouseover test [leftButton,middleButton]
+PASS testSet[i].buttons is 5
+
+MouseEvent::mouseout test [leftButton]
+PASS testSet[i].buttons is 1
+
+MouseEvent::contextmenu test [rightButton]
+PASS testSet[i].buttons is 2
Rick Byers 2014/11/25 17:44:27 Another example where I think this should be 0, no
zino 2014/11/28 02:37:09 Here.
zino 2014/11/28 12:29:28 If this is correct, you can see the patch set 7. B
+
+WheelEvent::mousewheel test [leftButton,rightButton]
+PASS testSet[i].buttons is 3
+
+GestureEvent::dblclick test [leftButton]
+PASS testSet[i].buttons is 1
+
+GestureEvent::click test [leftButton]
+PASS testSet[i].buttons is 1
+
+GestureEvent::mousedown test [leftButton]
+PASS testSet[i].buttons is 1
+
+GestureEvent::mouseup test [leftButton] -> []
+PASS testSet[i].buttons is 0
+
+GestureEvent::mousemove test []
+PASS testSet[i].buttons is 0
+
+GestureEvent::contextmenu test [rightButton]
+PASS testSet[i].buttons is 2
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+

Powered by Google App Engine
This is Rietveld 408576698