OLD | NEW |
1 #include "config.h" | 1 #include "config.h" |
2 | 2 |
3 #include <gtest/gtest.h> | 3 #include <gtest/gtest.h> |
4 #include "FrameTestHelpers.h" | 4 #include "FrameTestHelpers.h" |
5 #include "URLTestHelpers.h" | 5 #include "URLTestHelpers.h" |
6 #include "WebFrame.h" | 6 #include "WebFrame.h" |
7 #include "WebFrameClient.h" | 7 #include "WebFrameClient.h" |
8 #include "WebFrameImpl.h" | |
9 #include "WebHistoryItem.h" | 8 #include "WebHistoryItem.h" |
10 #include "WebInputEvent.h" | 9 #include "WebInputEvent.h" |
| 10 #include "WebLocalFrameImpl.h" |
11 #include "WebScriptSource.h" | 11 #include "WebScriptSource.h" |
12 #include "WebSettings.h" | 12 #include "WebSettings.h" |
13 #include "WebView.h" | 13 #include "WebView.h" |
14 #include "WebViewImpl.h" | 14 #include "WebViewImpl.h" |
15 #include "core/frame/FrameView.h" | 15 #include "core/frame/FrameView.h" |
16 #include "core/rendering/RenderView.h" | 16 #include "core/rendering/RenderView.h" |
17 #include "public/platform/Platform.h" | 17 #include "public/platform/Platform.h" |
18 #include "public/platform/WebUnitTestSupport.h" | 18 #include "public/platform/WebUnitTestSupport.h" |
19 | 19 |
20 using namespace WebCore; | 20 using namespace WebCore; |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 // FrameLoader::restoreScrollPositionAndViewState flows differently if scale
is zero. | 100 // FrameLoader::restoreScrollPositionAndViewState flows differently if scale
is zero. |
101 frame->loader().restoreScrollPositionAndViewState(); | 101 frame->loader().restoreScrollPositionAndViewState(); |
102 | 102 |
103 // Expect that only the scroll position was restored, and that it was not a
programmatic scroll. | 103 // Expect that only the scroll position was restored, and that it was not a
programmatic scroll. |
104 EXPECT_EQ(3.0f, webViewImpl->pageScaleFactor()); | 104 EXPECT_EQ(3.0f, webViewImpl->pageScaleFactor()); |
105 EXPECT_EQ(400, webViewImpl->mainFrameImpl()->scrollOffset().height); | 105 EXPECT_EQ(400, webViewImpl->mainFrameImpl()->scrollOffset().height); |
106 EXPECT_TRUE(frame->view()->wasScrolledByUser()); | 106 EXPECT_TRUE(frame->view()->wasScrolledByUser()); |
107 } | 107 } |
108 | 108 |
109 } | 109 } |
OLD | NEW |