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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/wheelevent-in-scrolling-div.html

Issue 2261173005: wheel layout tests moved to fast/events/wheel folder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 4 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: third_party/WebKit/LayoutTests/fast/events/wheelevent-in-scrolling-div.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/wheelevent-in-scrolling-div.html b/third_party/WebKit/LayoutTests/fast/events/wheelevent-in-scrolling-div.html
deleted file mode 100644
index c83f2f9c93869cf3bdbb235092cec5c222e9d0a4..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/wheelevent-in-scrolling-div.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<html>
- <head>
- <script src="../../resources/js-test.js"></script>
- <script>
- window.jsTestIsAsync = true;
- var expectedScrollTop = 200;
- var expectedScrollLeft = 100;
- var event;
- var div;
-
- function runTest()
- {
- var overflowElement = document.getElementById("overflow");
- if (overflowElement) {
- overflowElement.addEventListener("mousewheel", mousewheelHandler, false);
-
- // EventSender uses 40px per tick.
- eventSender.mouseMoveTo(overflowElement.offsetLeft + 5, overflowElement.offsetTop + 5);
- eventSender.mouseScrollBy(-2.5, -5);
- }
-
- div = document.getElementById("overflow");
- shouldBecomeEqual("div.scrollTop == window.expectedScrollTop && " +
- "div.scrollLeft == window.expectedScrollLeft", "true", finishJSTest);
- }
-
- function mousewheelHandler(e)
- {
- event = e;
- shouldBe("event.deltaY", "window.expectedScrollTop");
- shouldBe("event.deltaX", "window.expectedScrollLeft");
- shouldBe("event.wheelDeltaY", "-5*120");
- shouldBe("event.wheelDeltaX", "-2.5*120");
-
- if (e.wheelDeltaY)
- shouldBe("event.wheelDelta", "-5*120");
- else
- shouldBe("event.wheelDelta", "-2.5*120");
- }
- </script>
- </head>
-
- <body style="margin:0" onload="runTest()">
- <div id="overflow" style="border:2px solid black;overflow:auto;height:200px;width:200px;">
- <div style="background-color:red;height:200px;width:400px;"></div>
- <div style="background-color:green;height:200px;width:400px;"></div>
- <div style="background-color:red;height:200px;width:400px;"></div>
- </div>
- <div id="console"></div>
- </body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698