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

Unified Diff: LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt

Issue 1210253003: Fix wheel event dispatch logic to fallback to document when hit-test fails (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Address nits Created 5 years, 6 months 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/dispatch-mouse-events-to-window-always-expected.txt
diff --git a/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt b/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt
new file mode 100644
index 0000000000000000000000000000000000000000..93dc25ca56154077060c7931a51b7f77bfc5b098
--- /dev/null
+++ b/LayoutTests/fast/events/dispatch-mouse-events-to-window-always-expected.txt
@@ -0,0 +1,42 @@
+Test that wheel and mouse events are dispatched to document and window even if they do not hit any element in the page.
+On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+outside body, inside element
+eventType: mousedown
+PASS objectsToString(actualReceivers) is "HTMLDivElement,HTMLBodyElement,HTMLDocument,Window"
+eventType: mouseup
+PASS objectsToString(actualReceivers) is "HTMLDivElement,HTMLBodyElement,HTMLDocument,Window"
+eventType: click
+PASS objectsToString(actualReceivers) is "HTMLDivElement,HTMLBodyElement,HTMLDocument,Window"
+eventType: wheel
+PASS objectsToString(actualReceivers) is "HTMLDivElement,HTMLBodyElement,HTMLDocument,Window"
+inside body, outside element
+eventType: mousedown
+PASS objectsToString(actualReceivers) is "HTMLBodyElement,HTMLDocument,Window"
+eventType: mouseup
+PASS objectsToString(actualReceivers) is "HTMLBodyElement,HTMLDocument,Window"
+eventType: click
+PASS objectsToString(actualReceivers) is "HTMLBodyElement,HTMLDocument,Window"
+eventType: wheel
+PASS objectsToString(actualReceivers) is "HTMLBodyElement,HTMLDocument,Window"
+outside body, outside element, inside frame
+eventType: mousedown
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: mouseup
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: click
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: wheel
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+outside body, outside element, outside frame
+eventType: mousedown
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: mouseup
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: click
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+eventType: wheel
+PASS objectsToString(actualReceivers) is "HTMLDocument,Window"
+PASS successfullyParsed is true
+
+TEST COMPLETE
+
« no previous file with comments | « LayoutTests/fast/events/dispatch-mouse-events-to-window-always.html ('k') | Source/core/input/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698