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

Unified Diff: third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp

Issue 2642823005: Phase II Step 1: Remove updateImage() reentrancy around decodeError() (Closed)
Patch Set: Rebase Created 3 years, 11 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/loader/resource/ImageResourceInfo.h ('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/core/loader/resource/ImageResourceTest.cpp
diff --git a/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp b/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp
index 9f2b13c29a53d7bc31785370eafc48ee8d373820..8e86729bec6e07b92669ffb60c0a1056b0cbf794 100644
--- a/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp
+++ b/third_party/WebKit/Source/core/loader/resource/ImageResourceTest.cpp
@@ -922,7 +922,7 @@ TEST(ImageResourceTest, CancelOnDecodeError) {
EXPECT_TRUE(observer->imageNotifyFinishedCalled());
EXPECT_EQ(ResourceStatus::DecodeError,
observer->statusOnImageNotifyFinished());
- EXPECT_EQ(2, observer->imageChangedCount());
+ EXPECT_EQ(1, observer->imageChangedCount());
hiroshige 2017/01/25 02:49:15 As mentioned in the design doc and CL description,
EXPECT_FALSE(imageResource->isLoading());
}
@@ -1132,7 +1132,7 @@ TEST(ImageResourceTest, FetchAllowPlaceholderUnsuccessful) {
// The dimensions could not be extracted, so the full original image should be
// loading.
EXPECT_FALSE(observer->imageNotifyFinishedCalled());
- EXPECT_EQ(3, observer->imageChangedCount());
+ EXPECT_EQ(2, observer->imageChangedCount());
hiroshige 2017/01/25 02:49:15 ditto.
testThatReloadIsStartedAndDoReload(testURL, imageResource,
imageResource->getContent(),
« no previous file with comments | « third_party/WebKit/Source/core/loader/resource/ImageResourceInfo.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698