| Index: LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html
|
| diff --git a/LayoutTests/fast/events/touch/gesture/gesture-scroll.html b/LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html
|
| similarity index 87%
|
| copy from LayoutTests/fast/events/touch/gesture/gesture-scroll.html
|
| copy to LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html
|
| index 0c388b94470d953346e2046e8beeaf327b105ba4..23ab651cbcdfd4d3b84a1155984bf5f86e014ea0 100644
|
| --- a/LayoutTests/fast/events/touch/gesture/gesture-scroll.html
|
| +++ b/LayoutTests/fast/events/touch/gesture/gesture-scroll-zoomed.html
|
| @@ -69,8 +69,8 @@ td {
|
| var movingdiv;
|
| var expectedScrollsTotal = 2;
|
| var scrollsOccurred = 0;
|
| -var scrollAmountX = ['90', '90'];
|
| -var scrollAmountY = ['0', '95'];
|
| +var scrollAmountX = ['80', '80'];
|
| +var scrollAmountY = ['0', '32'];
|
|
|
| function checkScrollOffset()
|
| {
|
| @@ -95,8 +95,9 @@ function firstGestureScrollSequence()
|
| {
|
| debug("first gesture");
|
|
|
| - eventSender.gestureScrollBegin(95, 12);
|
| - eventSender.gestureScrollUpdate(-90, 0);
|
| + window.internals.setZoomFactor(0.5);
|
| + eventSender.gestureScrollBegin(45, 12);
|
| + eventSender.gestureScrollUpdate(-40, 0);
|
| eventSender.gestureScrollEnd(0, 0);
|
|
|
| // Wait for layout.
|
| @@ -107,8 +108,9 @@ function secondGestureScrollSequence()
|
| {
|
| debug("second gesture");
|
|
|
| - eventSender.gestureScrollBegin(12, 97);
|
| - eventSender.gestureScrollUpdate(0, -95);
|
| + window.internals.setZoomFactor(1.25);
|
| + eventSender.gestureScrollBegin(12, 47);
|
| + eventSender.gestureScrollUpdate(0, -40);
|
| eventSender.gestureScrollEnd(0, 0);
|
|
|
| // Wait for layout.
|
| @@ -131,7 +133,7 @@ function runTest()
|
| var movingdiv = document.getElementById('movingbox');
|
|
|
| if (window.eventSender) {
|
| - description('This tests scroll gesture events. ' +
|
| + description('This tests scroll gesture events with browser zoom. ' +
|
| 'Square is (mostly) green on pass');
|
|
|
| if (eventSender.clearTouchPoints)
|
|
|