| Index: Source/web/tests/ProgrammaticScrollTest.cpp
|
| diff --git a/Source/web/tests/ProgrammaticScrollTest.cpp b/Source/web/tests/ProgrammaticScrollTest.cpp
|
| index 2de6d9997701e7086041a8d35bae27c78e9a4771..08320f4dbb7922cce358b94291ddb597f9796d26 100644
|
| --- a/Source/web/tests/ProgrammaticScrollTest.cpp
|
| +++ b/Source/web/tests/ProgrammaticScrollTest.cpp
|
| @@ -71,10 +71,9 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithScale)
|
| frame->view()->setWasScrolledByUser(false);
|
| frame->loader().restoreScrollPositionAndViewState();
|
|
|
| - // Expect that both scroll and scale were restored, and that it was not a programmatic scroll.
|
| + // Expect that both scroll and scale were restored.
|
| EXPECT_EQ(2.0f, webViewImpl->pageScaleFactor());
|
| EXPECT_EQ(200, webViewImpl->mainFrameImpl()->scrollOffset().height);
|
| - EXPECT_TRUE(frame->view()->wasScrolledByUser());
|
| }
|
|
|
| TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithoutScale)
|
| @@ -99,10 +98,9 @@ TEST_F(ProgrammaticScrollTest, RestoreScrollPositionAndViewStateWithoutScale)
|
| // FrameLoader::restoreScrollPositionAndViewState flows differently if scale is zero.
|
| frame->loader().restoreScrollPositionAndViewState();
|
|
|
| - // Expect that only the scroll position was restored, and that it was not a programmatic scroll.
|
| + // Expect that only the scroll position was restored.
|
| EXPECT_EQ(3.0f, webViewImpl->pageScaleFactor());
|
| EXPECT_EQ(400, webViewImpl->mainFrameImpl()->scrollOffset().height);
|
| - EXPECT_TRUE(frame->view()->wasScrolledByUser());
|
| }
|
|
|
| }
|
|
|