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

Unified Diff: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html

Issue 1755773002: Pass the physical scroll delta through the scroll customization path. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@removeOneDimensionalScrolls
Patch Set: Updated LayoutTest Created 4 years, 10 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 | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html
diff --git a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html
index 0bd2bf25223485acaa54633e9171159bb32810cc..05057cd0ac92a1a1077a15a31b0a831ada5e3612 100644
--- a/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html
+++ b/third_party/WebKit/LayoutTests/fast/scroll-behavior/scroll-customization/touch-scroll-customization.html
@@ -67,7 +67,7 @@ internals.settings.setScrollAnimatorEnabled(false);
var originalApplyScrolls = [];
var originalDistributeScrolls = [];
-var deltas = [-85, -75, -65, -55, -45];
+var deltas = [85, 75, 65, 55, 45];
var elements = [
document.getElementById("d"),
@@ -109,7 +109,7 @@ function reset() {
function applyDelta(d) {
eventSender.gestureScrollBegin(10, 10);
- eventSender.gestureScrollUpdate(0, d);
+ eventSender.gestureScrollUpdate(0, -d);
eventSender.gestureScrollEnd(0, 0);
}
@@ -136,13 +136,13 @@ if ('ScrollState' in window) {
// Scroll five times, with five elements.
var unapplied = [
// d, the innermost element, never applies any scroll.
- [-85, -75, -65, -55, -45],
+ [85, 75, 65, 55, 45],
// c applies the first two scrolls, and then hits its scroll extents.
- [0, 0, -65, -55, -45],
+ [0, 0, 65, 55, 45],
// b doesn't scroll, and so leaves the same deltas unapplied as c.
- [-65, -55, -45],
+ [65, 55, 45],
// a hits its scroll extent on the second last step.
- [0, 0, -45],
+ [0, 0, 45],
// The scrollingElement performs the frame scroll.
[0]];
@@ -158,10 +158,10 @@ if ('ScrollState' in window) {
// Ensure that the document leaves scroll unapplied when appropriate.
var documentUnapplied = document.scrollingElement.unappliedDeltaY;
- applyDelta(-4000);
+ applyDelta(4000);
assert_equals(documentUnapplied[documentUnapplied.length - 1], 0);
- applyDelta(-4000);
- assert_equals(documentUnapplied[documentUnapplied.length - 1], -4000);
+ applyDelta(4000);
+ assert_equals(documentUnapplied[documentUnapplied.length - 1], 4000);
}, "Correct amount of delta is consumed.");
test(function() {
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/dom/Element.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698