diff options
Diffstat (limited to 'tests/AnimatedImageTest.cpp')
-rw-r--r-- | tests/AnimatedImageTest.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/AnimatedImageTest.cpp b/tests/AnimatedImageTest.cpp index cbbef2ddd2..95d7fc6d2e 100644 --- a/tests/AnimatedImageTest.cpp +++ b/tests/AnimatedImageTest.cpp @@ -82,6 +82,8 @@ DEF_TEST(AnimatedImage, r) { continue; } + REPORTER_ASSERT(r, defaultRepetitionCount == animatedImage->getRepetitionCount()); + auto testDraw = [r, &frames, &imageInfo, file](const sk_sp<SkAnimatedImage>& animatedImage, int expectedFrame) { SkBitmap test; @@ -216,6 +218,8 @@ DEF_TEST(AnimatedImage, r) { SkCodec::MakeFromData(data))); animatedImage->start(); animatedImage->setRepetitionCount(loopCount); + REPORTER_ASSERT(r, animatedImage->getRepetitionCount() == loopCount); + for (int loops = 0; loops <= loopCount; loops++) { REPORTER_ASSERT(r, animatedImage->isRunning()); REPORTER_ASSERT(r, !animatedImage->isFinished()); |