| Index: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed.html
|
| diff --git a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div.html b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed.html
|
| similarity index 86%
|
| copy from LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div.html
|
| copy to LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed.html
|
| index f5750fc69fe1c7262bdaedb6b05c6444ff30a15d..beeacceeddcac19ca25045c17fbf9069f67049e1 100644
|
| --- a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div.html
|
| +++ b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-zoomed.html
|
| @@ -70,8 +70,8 @@ td {
|
| var movingdiv;
|
| var expectedGesturesTotal = 2;
|
| var gesturesOccurred = 0;
|
| -var scrollAmountX = ['90', '90'];
|
| -var scrollAmountY = ['0', '95'];
|
| +var scrollAmountX = ['80', '80'];
|
| +var scrollAmountY = ['0', '32'];
|
| var wheelEventsOccurred = 0;
|
| var expectedWheelEventsOccurred = ['0', '0'];
|
| var scrollEventsOccurred = 0;
|
| @@ -81,8 +81,10 @@ var scrolledElement = 'movingdiv'
|
| function firstGestureScroll()
|
| {
|
| 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.
|
| @@ -92,8 +94,10 @@ function firstGestureScroll()
|
| function secondGestureScroll()
|
| {
|
| 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.
|
| @@ -110,7 +114,7 @@ function runTest()
|
| window.addEventListener("mousewheel", recordWheel);
|
|
|
| if (window.eventSender) {
|
| - description('This tests gesture event scrolling of an overflow div.');
|
| + description('This tests gesture event scrolling of an overflow div with browser zoom.');
|
|
|
| if (checkTestDependencies())
|
| firstGestureScroll();
|
|
|