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

Unified Diff: LayoutTests/fast/events/scale-and-scroll-iframe-body.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/scale-and-scroll-iframe-body.html
diff --git a/LayoutTests/fast/events/scale-and-scroll-iframe-body.html b/LayoutTests/fast/events/scale-and-scroll-iframe-body.html
index 26ee502ada98a88236fef840966329e9fbd7f795..6d84c73d24a0dd41f926416a22a1c448f224c73e 100644
--- a/LayoutTests/fast/events/scale-and-scroll-iframe-body.html
+++ b/LayoutTests/fast/events/scale-and-scroll-iframe-body.html
@@ -12,11 +12,11 @@
function scroll() {
window.scrollTo(0, 100);
var frame = document.getElementById('frame');
- frame.contentDocument.body.scrollTop = 100;
- frame.contentDocument.body.scrollLeft = 100;
+ frame.contentDocument.scrollingElement.scrollTop = 100;
+ frame.contentDocument.scrollingElement.scrollLeft = 100;
- shouldBe("frame.contentDocument.body.scrollTop", "100");
- shouldBe("frame.contentDocument.body.scrollLeft", "100");
+ shouldBe("frame.contentDocument.scrollingElement.scrollTop", "100");
+ shouldBe("frame.contentDocument.scrollingElement.scrollLeft", "100");
shouldBe("frame.contentWindow.scrollX", "100");
shouldBe("frame.contentWindow.scrollY", "100");
}

Powered by Google App Engine
This is Rietveld 408576698