Index: third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
diff --git a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
index daf35bd190b5dc7fb3e7d2aa8af05bc32d68e32f..1930c248b316b41e24964fc9f7a840689f75ac2a 100644 |
--- a/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
+++ b/third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp |
@@ -245,6 +245,13 @@ TEST(ImageResourceTest, MultipartImage) |
ASSERT_EQ(cachedImage->getImage()->height(), 1); |
ASSERT_EQ(client->imageChangedCount(), 1); |
ASSERT_TRUE(client->notifyFinishedCalled()); |
+ |
+ // When the multipart image is retrieved from the cache, the image is empty. |
+ cachedImage = ImageResource::create(ResourceRequest(testURL)); |
+ ASSERT_FALSE(cachedImage->resourceBuffer()); |
+ ASSERT_FALSE(cachedImage->errorOccurred()); |
+ ASSERT_FALSE(cachedImage->hasImage()); |
+ ASSERT_TRUE(cachedImage->getImage()->isNull()); |
} |
TEST(ImageResourceTest, CancelOnDetach) |