Index: Source/platform/graphics/BitmapImageTest.cpp |
diff --git a/Source/platform/graphics/BitmapImageTest.cpp b/Source/platform/graphics/BitmapImageTest.cpp |
index f81655536d7146fcca223efddd92327ad916715b..57d32f0461835474ca51601183db55ddbf2db67e 100644 |
--- a/Source/platform/graphics/BitmapImageTest.cpp |
+++ b/Source/platform/graphics/BitmapImageTest.cpp |
@@ -106,6 +106,11 @@ public: |
m_image->advanceAnimation(0); |
} |
+ PassRefPtr<Image> imageForDefaultFrame() |
+ { |
+ return m_image->imageForDefaultFrame(); |
+ } |
+ |
protected: |
virtual void SetUp() OVERRIDE |
{ |
@@ -230,6 +235,13 @@ TEST_F(BitmapImageTest, webpHasColorProfile) |
EXPECT_FALSE(m_image->hasColorProfile()); |
} |
+TEST_F(BitmapImageTest, icoHasWrongFrameDimensions) |
+{ |
+ loadImage("/LayoutTests/fast/images/resources/wrong-frame-dimensions.ico"); |
+ // This call would cause crash without fix for 408026 |
+ imageForDefaultFrame(); |
+} |
+ |
#endif // USE(QCMSLIB) |
} // namespace blink |