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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/wheelevent-mousewheel-interaction.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-mousewheel-interaction.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/wheelevent-mousewheel-interaction.html b/third_party/WebKit/LayoutTests/fast/events/wheelevent-mousewheel-interaction.html
deleted file mode 100644
index d6774ff301731aa4c48e89d03238f2de96a21295..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/wheelevent-mousewheel-interaction.html
+++ /dev/null
@@ -1,54 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<link rel="help" href="http://www.w3.org/TR/DOM-Level-3-Events/#events-WheelEvent">
-<script src="../../resources/js-test.js"></script>
-<script>
-function runTest() {
- var div = document.getElementById('target');
- div.addEventListener('wheel', wheelHandler);
- div.addEventListener('mousewheel', mouseWheelHandler);
- if (window.eventSender) {
- eventSender.mouseMoveTo(div.offsetLeft + 5, div.offsetTop + 5);
- eventSender.mouseScrollBy(10, 20);
- finishJSTest();
- } else {
- debug("FAIL: This test requires window.eventSender.");
- finishJSTest();
- }
-}
-
-var testEvent;
-function wheelHandler(e) {
- testEvent = e;
- testPassed("Standard wheel event was fired.");
- shouldBe("testEvent.__proto__", "WheelEvent.prototype");
-}
-
-function mouseWheelHandler(e) {
- testFailed("mousewheel event should not have fired.");
-}
-
-</script>
-</head>
-<body>
-<span id="parent">
- <div id="target" style="border:solid 1px green; width:220px; height:70px; overflow:scroll">
- TOP TOP TOP TOP TOP TOP TOP
- Scroll mouse wheel over here
- Scroll mouse wheel over here
- Scroll mouse wheel over here
- Scroll mouse wheel over here
- Scroll mouse wheel over here
- Scroll mouse wheel over here
- END END END END END END END
- </div>
-</span>
-<script>
-description("Tests the interaction between the standard 'wheel' event and the non-standard 'mousewheel' one");
-window.jsTestIsAsync = true;
-
-runTest();
-</script>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698