Update the test case for animated image view format test

This commit is contained in:
DreamPiggy 2019-11-09 03:10:18 +08:00
parent eef82411c4
commit 29027a693a
1 changed files with 2 additions and 12 deletions

View File

@ -108,12 +108,7 @@ static const NSUInteger kTestGIFFrameCount = 5; // local TestImage.gif loop coun
SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testGIFData]]; SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testGIFData]];
imageView.image = image; imageView.image = image;
expect(imageView.image).notTo.beNil(); expect(imageView.image).notTo.beNil();
#if SD_MAC expect(imageView.player).notTo.beNil();
imageView.animates = YES;
#else
[imageView startAnimating];
#endif
expect(imageView.currentFrame).notTo.beNil(); // current frame
} }
- (void)test09AnimatedImageViewSetAnimatedImageAPNG { - (void)test09AnimatedImageViewSetAnimatedImageAPNG {
@ -121,12 +116,7 @@ static const NSUInteger kTestGIFFrameCount = 5; // local TestImage.gif loop coun
SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testAPNGPData]]; SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testAPNGPData]];
imageView.image = image; imageView.image = image;
expect(imageView.image).notTo.beNil(); expect(imageView.image).notTo.beNil();
#if SD_MAC expect(imageView.player).notTo.beNil();
imageView.animates = YES;
#else
[imageView startAnimating];
#endif
expect(imageView.currentFrame).notTo.beNil(); // current frame
} }
- (void)test10AnimatedImageInitWithCoder { - (void)test10AnimatedImageInitWithCoder {