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

Unified Diff: third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html

Issue 1424593002: Update layout tests to use internals.visualViewport APIs. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo delete test that depends on "inert-visual-viewport" flag Created 5 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: third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
diff --git a/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html b/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
index 170c43e8cbac28f8b7dad2b6f729240ee6d61268..f16af2474d48ecb29dbeedb9c41c6a07b589a5a9 100644
--- a/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
+++ b/third_party/WebKit/LayoutTests/fast/transforms/selection-bounds-in-transformed-view.html
@@ -13,11 +13,11 @@
window.internals.settings.setPreferCompositingToLCDTextEnabled(true);
document.execCommand("FindString", false, "target");
- document.getElementById("result").innerText = document.scrollingElement.scrollTop === 860 ? "PASS" : "FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
+ document.getElementById("result").innerText = internals.visualViewportScrollY() === 860 ? "PASS" : "FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
window.internals.settings.setPreferCompositingToLCDTextEnabled(false);
document.execCommand("FindString", false, "target");
- document.getElementById("result").innerText += document.scrollingElement.scrollTop === 860 ? " PASS" : " FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
+ document.getElementById("result").innerText += internals.visualViewportScrollY() === 860 ? " PASS" : " FAIL (scrollTop:" + document.scrollingElement.scrollTop + ")";
};
</script>
</body>

Powered by Google App Engine
This is Rietveld 408576698