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

Unified Diff: LayoutTests/fast/events/wheelevent-ctrl-expected.txt

Issue 212913002: Prevent ctrl+wheel from scrolling in more places (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fixes Created 6 years, 9 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
« no previous file with comments | « LayoutTests/fast/events/wheelevent-ctrl.html ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: LayoutTests/fast/events/wheelevent-ctrl-expected.txt
diff --git a/LayoutTests/fast/events/wheelevent-ctrl-expected.txt b/LayoutTests/fast/events/wheelevent-ctrl-expected.txt
index 482118d44fb7d767942d2e2a7a7cc71251f3e320..967df05fa9f1ebd05a009d3e860f7a38893bb4f4 100644
--- a/LayoutTests/fast/events/wheelevent-ctrl-expected.txt
+++ b/LayoutTests/fast/events/wheelevent-ctrl-expected.txt
@@ -7,19 +7,35 @@ Scroll mouse wheel over here
END
+And scroll the document here
Tests that wheel events with the ctrl modifier are handled properly
On success, you will see a series of "PASS" messages, followed by "TEST COMPLETE".
+Test mousewheel events over scrollable div
+With ctrl modifier set
PASS wheelEventCount is 1
PASS deltaY is 80
PASS ctrlKey is true
PASS testDiv.scrollTop is 0
-PASS wheelEventCount is 2
+Without ctrl
+PASS wheelEventCount is 1
PASS deltaY is 80
PASS ctrlKey is false
PASS testDiv.scrollTop is deltaY
+
+Test mousewheel events over the document
+With ctrl modifier set
+PASS wheelEventCount is 1
+PASS deltaY is 80
+PASS ctrlKey is true
+PASS document.body.scrollTop is 0
+Now without ctrl
+PASS wheelEventCount is 1
+PASS deltaY is 80
+PASS ctrlKey is false
+PASS window.scrollY is deltaY
PASS successfullyParsed is true
TEST COMPLETE
« no previous file with comments | « LayoutTests/fast/events/wheelevent-ctrl.html ('k') | Source/core/page/EventHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698