Chromium Code Reviews| 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 a308e7b3e135af03b88d913efd339e85a988b9b9..dac5a475b9554b023c0173b472770241f19b7b2f 100644 |
| --- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
| +++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
| @@ -927,6 +927,7 @@ TEST_P(VisualViewportTest, TestRestoredFromHistoryItem) { |
| item.setURLString(destinationURL.string()); |
| item.setVisualViewportScrollOffset(WebFloatPoint(100, 120)); |
| item.setPageScaleFactor(2); |
| + item.setDidSaveScrollOrScaleState(true); |
|
majidvp
2017/02/15 17:37:32
and here.
|
| FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, |
| WebHistoryDifferentDocumentLoad, |
| @@ -959,6 +960,7 @@ TEST_P(VisualViewportTest, TestRestoredFromLegacyHistoryItem) { |
| item.setVisualViewportScrollOffset(WebFloatPoint(-1, -1)); |
| item.setScrollOffset(WebPoint(120, 180)); |
| item.setPageScaleFactor(2); |
| + item.setDidSaveScrollOrScaleState(true); |
|
majidvp
2017/02/15 17:37:32
and here.
|
| FrameTestHelpers::loadHistoryItem(webViewImpl()->mainFrame(), item, |
| WebHistoryDifferentDocumentLoad, |