Index: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-twice-propagated.html |
=================================================================== |
--- LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-twice-propagated.html (revision 145820) |
+++ LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-div-twice-propagated.html (working copy) |
@@ -116,30 +116,12 @@ |
var scrollEventsOccurred = 0; |
var expectedScrollEventsOccurred = '1'; |
- |
-function recordScroll(event) { |
- debug('scroll event ' + scrollEventsOccurred + '+> ' + event.target); |
- scrollEventsOccurred++; |
- |
- if (window.eventSender) { |
- // Because scroll events arrive asynchronously, only one will arrive. |
- if (gesturesOccurred == expectedGesturesTotal) { |
- shouldBe('scrollEventsOccurred', expectedScrollEventsOccurred); |
- // If we've got here, we've passed. |
- successfullyParsed = true; |
- isSuccessfullyParsed(); |
- if (window.testRunner) |
- testRunner.notifyDone(); |
- } |
- } |
-} |
- |
- |
function firstGestureScroll() |
{ |
debug("first gesture"); |
eventSender.gestureScrollBegin(10, 72); |
- eventSender.gestureScrollUpdate(0, -230); |
+ eventSender.gestureScrollUpdate(0, -200); |
+ eventSender.gestureScrollUpdate(0, -30); |
eventSender.gestureScrollEnd(0, 0); |
// Wait for layout. |
@@ -150,7 +132,8 @@ |
{ |
debug("second gesture"); |
eventSender.gestureScrollBegin(12, 40); |
- eventSender.gestureScrollUpdate(0, -45); |
+ eventSender.gestureScrollUpdate(0, -20); |
+ eventSender.gestureScrollUpdate(0, -25); |
eventSender.gestureScrollEnd(0, 0); |
// Wait for layout. |