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

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

Issue 1889973002: Refactoring starting a resource load (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months 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
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 7299c17c81981a4a03a1d4076a482fe5d40e93b7..36df467a34f16e29c55fe7ee04a0e0a1ac24aff4 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -6127,7 +6127,9 @@ TEST_P(ParameterizedWebFrameTest, NavigateToSameNoConditionalRequestForSubresour
WebCache::clear();
FrameTestHelpers::loadFrame(webViewHelper.webView()->mainFrame(), m_baseURL + "foo_with_image.html");
- EXPECT_EQ(client.numOfImageRequests(), 2);
+ // 2 images are requested, and each triggers 2 willSendRequest() calls,
+ // once for preloading and once for the real request.
+ EXPECT_EQ(client.numOfImageRequests(), 4);
}
TEST_P(ParameterizedWebFrameTest, WebNodeImageContents)

Powered by Google App Engine
This is Rietveld 408576698