diff options
Diffstat (limited to 'chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp')
-rw-r--r-- | chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp b/chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp index 89c576f9110..5cfea99fe93 100644 --- a/chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp +++ b/chromium/third_party/WebKit/Source/platform/graphics/BitmapImageTest.cpp @@ -349,6 +349,13 @@ TEST_F(BitmapImageTest, ImageForDefaultFrame_SingleFrame) { EXPECT_EQ(image_->ImageForDefaultFrame(), image_); } +TEST_F(BitmapImageTest, GIFRepetitionCount) { + LoadImage("/LayoutTests/images/resources/three-frames_loop-three-times.gif"); + auto paint_image = image_->PaintImageForCurrentFrame(); + EXPECT_EQ(paint_image.repetition_count(), 3); + EXPECT_EQ(paint_image.FrameCount(), 3u); +} + class BitmapImageTestWithMockDecoder : public BitmapImageTest, public MockImageDecoderClient { public: |