| Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| index de41d3e91ce8ecd9b5bb46b2f2c9ee33fae80b21..3471fd824d73d6fad6f3ddd0178a1354eec20c3d 100644
|
| --- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| +++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp
|
| @@ -938,7 +938,7 @@ TEST_P(ParameterizedVisualViewportTest, DISABLED_TestWebFrameRangeAccountsForVis
|
| // the range and its end). Do a sanity check that the expected text is
|
| // selected
|
| mainFrame->executeScript(WebScriptSource("selectRange();"));
|
| - EXPECT_EQ("ir", mainFrame->selectionAsText().utf8());
|
| + EXPECT_EQ("ir", mainFrame->toWebLocalFrame()->selectionAsText().utf8());
|
|
|
| webViewImpl()->selectionBounds(baseRect, extentRect);
|
| WebPoint initialPoint(baseRect.x, baseRect.y);
|
| @@ -949,8 +949,8 @@ TEST_P(ParameterizedVisualViewportTest, DISABLED_TestWebFrameRangeAccountsForVis
|
| // the right and down one line.
|
| VisualViewport& visualViewport = frame()->page()->frameHost().visualViewport();
|
| visualViewport.move(FloatPoint(60, 25));
|
| - mainFrame->moveRangeSelection(initialPoint, endPoint);
|
| - EXPECT_EQ("t ", mainFrame->selectionAsText().utf8());
|
| + mainFrame->toWebLocalFrame()->moveRangeSelection(initialPoint, endPoint);
|
| + EXPECT_EQ("t ", mainFrame->toWebLocalFrame()->selectionAsText().utf8());
|
| }
|
|
|
| // Test that the scrollFocusedEditableElementIntoRect method works with the visual viewport.
|
|
|