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

Unified Diff: third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.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/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html
diff --git a/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html b/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html
index 15f4f227eab73e082b76d3ec68c61be721ea85e2..c30658059c2a7332b9c7900230c080bc6e4c3a32 100644
--- a/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html
+++ b/third_party/WebKit/LayoutTests/inspector/elements/highlight/highlight-node-scaled-and-scrolled.html
@@ -26,10 +26,11 @@ function onload()
{
if (window.internals)
window.internals.setPageScaleFactor(2);
- window.scrollTo(1000, 1000);
+ // Fully scroll the visual viewport.
+ internals.setVisualViewportOffset(1000, 1000);
runTest();
}
-
+
function test()
{
InspectorTest.dumpInspectorHighlightJSON("div", InspectorTest.completeTest.bind(InspectorTest));

Powered by Google App Engine
This is Rietveld 408576698