Update the test case for catalyst

This commit is contained in:
DreamPiggy 2019-08-13 13:22:10 +08:00
parent 054c5186b8
commit 3f248552b3
1 changed files with 4 additions and 0 deletions

View File

@ -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 {