Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1612)

Unified Diff: third_party/WebKit/Source/web/tests/WebFrameTest.cpp

Issue 2567983008: FasterReload: remove default WebFrameLoadType from WebFrame::reload* (Closed)
Patch Set: Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
index 7cf7d26aa896954080f9615aedf1a4eb2d842441..4f068fc31acda2103f4774f35341569773a72a7b 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -4130,7 +4130,7 @@ TEST_F(WebFrameTest, ReloadWithOverrideURLPreservesState) {
// Reload the page and end up at the same url. State should be propagated.
webViewHelper.webView()->mainFrame()->reloadWithOverrideURL(
- toKURL(m_baseURL + firstURL), WebFrameLoadType::Reload);
+ toKURL(m_baseURL + firstURL), WebFrameLoadType::ReloadMainResource);
FrameTestHelpers::pumpPendingRequestsForFrameToLoad(
webViewHelper.webView()->mainFrame());
EXPECT_EQ(previousOffset.width,
@@ -4141,7 +4141,7 @@ TEST_F(WebFrameTest, ReloadWithOverrideURLPreservesState) {
// Reload the page using the cache. State should not be propagated.
webViewHelper.webView()->mainFrame()->reloadWithOverrideURL(
- toKURL(m_baseURL + secondURL), WebFrameLoadType::Reload);
+ toKURL(m_baseURL + secondURL), WebFrameLoadType::ReloadMainResource);
FrameTestHelpers::pumpPendingRequestsForFrameToLoad(
webViewHelper.webView()->mainFrame());
EXPECT_EQ(0, webViewHelper.webView()->mainFrame()->getScrollOffset().width);
« no previous file with comments | « no previous file | third_party/WebKit/public/web/WebFrame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698