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)); |