| Index: LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html
|
| diff --git a/LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html b/LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html
|
| index 5f6fc0f276b6f0b410fdb8b1612fb4b28aefa740..a586ad12320fc42a7b4bc5505c6c2c316103ce2a 100644
|
| --- a/LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html
|
| +++ b/LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html
|
| @@ -51,7 +51,7 @@ td {
|
| var movedbox;
|
| var touchtarget;
|
| var iframe;
|
| -var iframeBody;
|
| +var iframeScrollingElement;
|
| var iframeDocumentElement;
|
| var expectedGesturesTotal = 1;
|
| var gesturesOccurred = 0;
|
| @@ -67,15 +67,14 @@ var expectedScrollEventsOccurred = '1';
|
| function firstGestureScroll()
|
| {
|
| iframe = touchtarget;
|
| - iframeBody = iframe.contentDocument.body;
|
| - iframeDocumentElement = touchtarget.contentDocument.documentElement;
|
| + iframeScrollingElement = iframe.contentDocument.scrollingElement;
|
|
|
| - var amountToScroll = iframeBody.scrollHeight - iframe.clientHeight;
|
| + var amountToScroll = iframeScrollingElement.scrollHeight - iframe.clientHeight;
|
|
|
| - iframeBody.scrollTop = amountToScroll;
|
| + iframeScrollingElement.scrollTop = amountToScroll;
|
|
|
| // Sanity - make sure the iframe is actually fully scrolled
|
| - shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHeight');
|
| + shouldBe('iframeScrollingElement.scrollHeight - iframeScrollingElement.scrollTop', 'iframe.clientHeight');
|
|
|
| eventSender.gestureScrollBegin(10, 72);
|
| // Prevent scroll to propagate by passing true for third parameter
|
|
|