Index: Source/platform/graphics/DeferredImageDecoderTest.cpp |
diff --git a/Source/platform/graphics/DeferredImageDecoderTest.cpp b/Source/platform/graphics/DeferredImageDecoderTest.cpp |
index 757cfc4a409b172d58868588f7df4055ecd308fb..fd20b70f99576212d6d9dd42152ab54c7486955f 100644 |
--- a/Source/platform/graphics/DeferredImageDecoderTest.cpp |
+++ b/Source/platform/graphics/DeferredImageDecoderTest.cpp |
@@ -325,4 +325,17 @@ TEST_F(DeferredImageDecoderTest, decodedSize) |
EXPECT_EQ(1, m_frameBufferRequestCount); |
} |
+TEST_F(DeferredImageDecoderTest, smallerFrameCount) |
+{ |
+ m_frameCount = 1; |
+ m_lazyDecoder->setData(m_data.get(), false); |
+ EXPECT_EQ(m_frameCount, m_lazyDecoder->frameCount()); |
+ m_frameCount = 2; |
+ m_lazyDecoder->setData(m_data.get(), false); |
+ EXPECT_EQ(m_frameCount, m_lazyDecoder->frameCount()); |
+ m_frameCount = 0; |
+ m_lazyDecoder->setData(m_data.get(), true); |
+ EXPECT_EQ(m_frameCount, m_lazyDecoder->frameCount()); |
+} |
+ |
} // namespace WebCore |