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

Unified Diff: LayoutTests/fast/transforms/selection-bounds-in-transformed-view.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/transforms/selection-bounds-in-transformed-view.html
diff --git a/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html b/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
index cadcd5c8a21b0916c0849ce8ddd852e066422faf..e9db4615e07a52dee63554eee3c184b63b290b1e 100644
--- a/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
+++ b/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
@@ -11,10 +11,10 @@
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
document.execCommand("FindString", false, "target");
- document.getElementById("result").innerText = document.body.scrollTop === 860 ? "PASS" : "FAIL (scrollTop:" + document.body.scrollTop + ")";
+ document.getElementById("result").innerText = document.scrollingElement.scrollTop === 860 ? "PASS" : "FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
document.execCommand("FindString", false, "target");
- document.getElementById("result").innerText += document.body.scrollTop === 860 ? " PASS" : " FAIL (scrollTop:" + document.body.scrollTop + ")";
+ document.getElementById("result").innerText += document.scrollingElement.scrollTop === 860 ? " PASS" : " FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698