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

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: nits Created 6 years 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
« no previous file with comments | « LayoutTests/fast/events/mouse-event-buttons-attribute.html ('k') | Source/core/events/MouseEvent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..38a297d5f0f1a9f6046fc792091cf8d031a9fa87
--- /dev/null
+++ b/LayoutTests/fast/events/mouse-event-buttons-attribute-expected.txt
@@ -0,0 +1,73 @@
+MouseEvent::dblclick doubleClickAction([leftButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+MouseEvent::click clickAction([leftButton,rightButton]) -> shouldBe([rightButton])
+PASS testSet[i].buttons is 2
+
+MouseEvent::mousedown clickAction([leftButton,middleButton,rightButton]) -> shouldBe([leftButton,middleButton,rightButton])
+PASS testSet[i].buttons is 7
+
+MouseEvent::mouseup clickAction([leftButton,middleButton,rightButton]) -> shouldBe([middleButton,rightButton])
+PASS testSet[i].buttons is 6
+
+MouseEvent::mousemove moveAction([]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+MouseEvent::mousemove moveAction([leftButton]) -> shouldBe([leftButton])
+PASS testSet[i].buttons is 1
+
+MouseEvent::mouseenter moveAction([rightButton,middleButton]) -> shouldBe([rightButton,middleButton])
+PASS testSet[i].buttons is 6
+
+MouseEvent::mouseleave moveAction([leftButton,rightButton]) -> shouldBe([leftButton,rightButton])
+PASS testSet[i].buttons is 3
+
+MouseEvent::mouseover moveAction([leftButton,middleButton]) -> shouldBe([leftButton,middleButton])
+PASS testSet[i].buttons is 5
+
+MouseEvent::mouseout moveAction([leftButton]) -> shouldBe([leftButton])
+PASS testSet[i].buttons is 1
+
+MouseEvent::contextmenu with |showContextMenuOnMouseUp=false| rightClickAction([rightButton]) -> shouldBe([rightButton])
+PASS testSet[i].buttons is 2
+
+MouseEvent::contextmenu with |showContextMenuOnMouseUp=true| rightClickAction([rightButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+WheelEvent::mousewheel wheelAction([leftButton,rightButton]) -> shouldBe([leftButton,rightButton])
+PASS testSet[i].buttons is 3
+
+GestureEvent::dblclick doubleTapAction([leftButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+GestureEvent::click tapAction([leftButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+GestureEvent::mousedown tapAction([leftButton]) -> shouldBe([leftButton])
+PASS testSet[i].buttons is 1
+
+GestureEvent::mouseup tapAction([leftButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+GestureEvent::mousemove tapAction([]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+GestureEvent::mousedown longPressAction([rightButton]) -> shouldBe([rightButton])
+PASS testSet[i].buttons is 2
+
+GestureEvent::contextmenu with |showContextMenuOnMouseUp=false| longPressAction([rightButton]) -> shouldBe([rightButton])
+PASS testSet[i].buttons is 2
+
+GestureEvent::contextmenu with |showContextMenuOnMouseUp=true| longPressAction([rightButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+GestureEvent::contextmenu with |showContextMenuOnMouseUp=false| longTapAction([rightButton]) -> shouldBe([rightButton])
+PASS testSet[i].buttons is 2
+
+GestureEvent::contextmenu with |showContextMenuOnMouseUp=true| longTapAction([rightButton]) -> shouldBe([])
+PASS testSet[i].buttons is 0
+
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/events/mouse-event-buttons-attribute.html ('k') | Source/core/events/MouseEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698