From 29027a693ae358a235518fd936bc5746ce28e0c8 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Sat, 9 Nov 2019 03:10:18 +0800 Subject: [PATCH] Update the test case for animated image view format test --- Tests/Tests/SDAnimatedImageTest.m | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) diff --git a/Tests/Tests/SDAnimatedImageTest.m b/Tests/Tests/SDAnimatedImageTest.m index 1c7b8bcf..07717b82 100644 --- a/Tests/Tests/SDAnimatedImageTest.m +++ b/Tests/Tests/SDAnimatedImageTest.m @@ -108,12 +108,7 @@ static const NSUInteger kTestGIFFrameCount = 5; // local TestImage.gif loop coun SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testGIFData]]; imageView.image = image; expect(imageView.image).notTo.beNil(); -#if SD_MAC - imageView.animates = YES; -#else - [imageView startAnimating]; -#endif - expect(imageView.currentFrame).notTo.beNil(); // current frame + expect(imageView.player).notTo.beNil(); } - (void)test09AnimatedImageViewSetAnimatedImageAPNG { @@ -121,12 +116,7 @@ static const NSUInteger kTestGIFFrameCount = 5; // local TestImage.gif loop coun SDAnimatedImage *image = [SDAnimatedImage imageWithData:[self testAPNGPData]]; imageView.image = image; expect(imageView.image).notTo.beNil(); - #if SD_MAC - imageView.animates = YES; - #else - [imageView startAnimating]; - #endif - expect(imageView.currentFrame).notTo.beNil(); // current frame + expect(imageView.player).notTo.beNil(); } - (void)test10AnimatedImageInitWithCoder {