| Index: Source/web/tests/WebViewTest.cpp
|
| diff --git a/Source/web/tests/WebViewTest.cpp b/Source/web/tests/WebViewTest.cpp
|
| index 9cc521edf56cfa56b44b505af617aff1472206d0..fcc76a7a5d7f51749f2b45c505dca634de767988 100644
|
| --- a/Source/web/tests/WebViewTest.cpp
|
| +++ b/Source/web/tests/WebViewTest.cpp
|
| @@ -1169,13 +1169,11 @@ TEST_F(WebViewTest, HistoryResetScrollAndScaleState)
|
| EXPECT_EQ(111, mainFrameLocal->loader().currentItem()->scrollPoint().y());
|
|
|
| // Confirm that resetting the page state resets the saved scroll position.
|
| - // The HistoryController treats a page scale factor of 0.0f as special and avoids
|
| - // restoring it to the WebView.
|
| webViewImpl->resetScrollAndScaleState();
|
| EXPECT_EQ(1.0f, webViewImpl->pageScaleFactor());
|
| EXPECT_EQ(0, webViewImpl->mainFrame()->scrollOffset().width);
|
| EXPECT_EQ(0, webViewImpl->mainFrame()->scrollOffset().height);
|
| - EXPECT_EQ(0.0f, mainFrameLocal->loader().currentItem()->pageScaleFactor());
|
| + EXPECT_EQ(1.0f, mainFrameLocal->loader().currentItem()->pageScaleFactor());
|
| EXPECT_EQ(0, mainFrameLocal->loader().currentItem()->scrollPoint().x());
|
| EXPECT_EQ(0, mainFrameLocal->loader().currentItem()->scrollPoint().y());
|
| }
|
|
|