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

Unified Diff: LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.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/autoscroll-in-overflow-hidden-html.html
diff --git a/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html b/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html
index bc14a42e7011f269544cd56932b2e11a6c8f3bbf..a4672ecaa6209c2afcfa5f00184be52736d967b0 100644
--- a/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html
+++ b/LayoutTests/fast/events/autoscroll-in-overflow-hidden-html.html
@@ -36,14 +36,14 @@
function autoscrollTestPart1()
{
- iframeScrollTopAfterAnchor = iframeDocument.body.scrollTop;
- if (iframeDocument.body.scrollTop == 0)
+ iframeScrollTopAfterAnchor = iframeDocument.scrollingElement.scrollTop;
+ if (iframeDocument.scrollingElement.scrollTop == 0)
log("FAILED: anchor clicking within non-scrollable inner frame failed.");
if (window.eventSender) {
var textInIframe = iframeDocument.getElementById('textInFrame');
- var x = iframe.offsetLeft + textInIframe.offsetLeft - iframeDocument.body.scrollLeft + 7;
- var y = iframe.offsetTop + textInIframe.offsetTop - iframeDocument.body.scrollTop + 7;
+ var x = iframe.offsetLeft + textInIframe.offsetLeft - iframeDocument.scrollingElement.scrollLeft + 7;
+ var y = iframe.offsetTop + textInIframe.offsetTop - iframeDocument.scrollingElement.scrollTop + 7;
eventSender.dragMode = false;
eventSender.mouseMoveTo(x, y);
eventSender.mouseDown();
@@ -60,7 +60,7 @@
eventSender.mouseUp();
log("Document whose HTML or BODY tags have overflow:hidden should not autoscroll.");
- if (iframeScrollTopAfterAnchor == iframeDocument.body.scrollTop)
+ if (iframeScrollTopAfterAnchor == iframeDocument.scrollingElement.scrollTop)
log("PASSED: the autoscroll has not happened.");
else
log("FAILED: the autoscroll has happened.");
« no previous file with comments | « LayoutTests/fast/events/autoscroll.html ('k') | LayoutTests/fast/events/autoscroll-should-not-stop-on-keypress.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698