From 3f248552b344dd0c684beb296ccb1dd4fae5c936 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Tue, 13 Aug 2019 13:22:10 +0800 Subject: [PATCH] Update the test case for catalyst --- Tests/Tests/SDAnimatedImageTest.m | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Tests/Tests/SDAnimatedImageTest.m b/Tests/Tests/SDAnimatedImageTest.m index 580422f5..573bd5b3 100644 --- a/Tests/Tests/SDAnimatedImageTest.m +++ b/Tests/Tests/SDAnimatedImageTest.m @@ -151,9 +151,13 @@ static const NSUInteger kTestGIFFrameCount = 5; // local TestImage.gif loop coun imageView.image = image; #if SD_MAC expect(imageView.wantsUpdateLayer).beTruthy(); +#else +#if TARGET_OS_MACCATALYST + // macOS's UIImageView seems does not setup layer.contents until render on screen #else expect(imageView.layer.contents).notTo.beNil(); #endif +#endif } - (void)test13AnimatedImageViewInitWithImage {