ソースを参照

Update the test case for catalyst

DreamPiggy 6 年 前
コミット
3f248552b3
1 ファイル変更4 行追加0 行削除
  1. 4 0
      Tests/Tests/SDAnimatedImageTest.m

+ 4 - 0
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 {