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

Unified Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-fully-scrolled-iframe-propagates.html

Issue 1133693002: Update most LayoutTests to be agnostic to scrollTopLeftInterop mode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: tdresser cr feedback Created 5 years, 7 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
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

Powered by Google App Engine
This is Rietveld 408576698