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

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

Issue 2353013002: [test] Resources served from MemoryCache - early exit (Closed)
Patch Set: use the right issue :P Created 4 years, 2 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
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | 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 da892f9cf4fb0e3017ee2170a17456c567be7e4f..162af98bc35d09037f87f86ceb74819b2699c6d9 100644
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp
@@ -7014,9 +7014,9 @@ TEST_P(ParameterizedWebFrameTest,
FrameTestHelpers::loadFrame(webViewHelper.webView()->mainFrame(),
m_baseURL + "foo_with_image.html");
- // 2 images are requested, and each triggers 2 willSendRequest() calls,
- // once for preloading and once for the real request.
- EXPECT_EQ(client.numOfImageRequests(), 4);
+ // 2 images are requested, and each triggers 1 willSendRequest() calls.
+ // Preload matches do not call willSendRequest().
+ EXPECT_EQ(client.numOfImageRequests(), 2);
}
TEST_P(ParameterizedWebFrameTest, WebNodeImageContents) {
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698