We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
testWebPEncodingWithICCProfile
1 parent bf6de35 commit f146fa4Copy full SHA for f146fa4
Tests/SDWebImageWebPCoderTests.m
@@ -371,10 +371,18 @@ - (void)testWebPEncodingWithICCProfile {
371
CGFloat r1;
372
CGFloat g1;
373
CGFloat b1;
374
+#if SD_UIKIT
375
[color1 getRed:&r1 green:&g1 blue:&b1 alpha:nil];
376
expect(255 * r1).beCloseToWithin(0, 5);
377
expect(255 * g1).beCloseToWithin(38, 5);
378
expect(255 * b1).beCloseToWithin(135, 5);
379
+#else
380
+ @try {
381
+ [color1 getRed:&r1 green:&g1 blue:&b1 alpha:nil];
382
+ }
383
+ @catch (NSException *exception) {}
384
+ expect(255 * r1).beCloseToWithin(0, 5);
385
+#endif
386
}
387
388
@end
0 commit comments