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

Unified Diff: LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html

Issue 25039006: document.documentElement.scrollTop/Left is zero (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: document.documentElement.scrollTop/Left is zero Created 7 years, 2 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-scroll-iframe-not-propagated.html
diff --git a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html
index 27bed8735c8fd609af50ace7f1edf3104840e379..97ccc5af09beedc411ad9e9df433d3715dc832c7 100644
--- a/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html
+++ b/LayoutTests/fast/events/touch/gesture/touch-gesture-scroll-iframe-not-propagated.html
@@ -53,6 +53,7 @@ var movedbox;
var touchtarget;
var iframe;
var iframeBody;
+var iframeDocumentElement;
var expectedGesturesTotal = 1;
var gesturesOccurred = 0;
var scrollAmountX = ['0'];
@@ -68,6 +69,7 @@ function firstGestureScroll()
{
iframe = touchtarget;
iframeBody = iframe.contentDocument.body;
+ iframeDocumentElement = iframe.contentDocument.documentElement;
debug("first gesture");
eventSender.gestureScrollBegin(10, 72);
@@ -78,7 +80,7 @@ function firstGestureScroll()
eventSender.gestureScrollEnd(0, 0);
// Make sure the actual iframe got fully scrolled
- shouldBe('iframeBody.scrollHeight - iframeBody.scrollTop', 'iframe.clientHeight');
+ shouldBe('iframeBody.scrollHeight - iframeDocumentElement.scrollTop', 'iframe.clientHeight');
// Wait for layout.
checkScrollOffset();

Powered by Google App Engine
This is Rietveld 408576698