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

Unified Diff: third_party/WebKit/LayoutTests/fast/events/wheel-fling-cancel.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/wheel-fling-cancel.html
diff --git a/third_party/WebKit/LayoutTests/fast/events/wheel-fling-cancel.html b/third_party/WebKit/LayoutTests/fast/events/wheel-fling-cancel.html
deleted file mode 100644
index 4cccbb55766c0e1f00939d41407f50b31998532c..0000000000000000000000000000000000000000
--- a/third_party/WebKit/LayoutTests/fast/events/wheel-fling-cancel.html
+++ /dev/null
@@ -1,51 +0,0 @@
-<!DOCTYPE html>
-<html>
-<head>
-<script src="../../resources/js-test.js"></script>
-<script>
- description("Tests that a mouse wheel event will cancel an in progress fling gesture.");
-
- var expectedWheelEventsOccurred = "0";
- var actualWheelEventsOccurred = 0;
-
- function notifyWhenFlingIsOver() {
- if (!window.testRunner)
- return;
- if (eventSender.isFlinging()) {
- window.setTimeout(notifyWhenFlingIsOver, 0);
- return;
- }
- shouldBe('actualWheelEventsOccurred', expectedWheelEventsOccurred);
- testRunner.notifyDone();
- }
-
- function recordWheelEvent(event)
- {
- shouldBe('event.clientX', "10");
- shouldBe('event.clientY', "11");
-
- // Test deliberately does not equality check wheelDeltas to not be fragile in the face of curve adjustment.
- shouldBeTrue("event.wheelDeltaX > 5");
- shouldBeTrue("event.wheelDeltaY > 5");
- actualWheelEventsOccurred++;
- shouldBeTrue("actualWheelEventsOccurred == 0");
- if (window.testRunner)
- testRunner.notifyDone();
- }
-
- if (window.testRunner && window.eventSender && window.eventSender.gestureFlingStart) {
- eventSender.gestureFlingStart(10, 11, 1000, 1000, "touchpad");
- window.eventSender.mouseMoveTo(100, 100);
- window.eventSender.mouseScrollBy(0, 1);
- document.addEventListener("mousewheel", recordWheelEvent);
- testRunner.waitUntilDone();
- notifyWhenFlingIsOver();
- }
-
-</script>
-</head>
-<body>
-<span id="e"></span>
-<span id="f"></span>
-</body>
-</html>

Powered by Google App Engine
This is Rietveld 408576698