Skip to content

Commit d68b92d

Browse files
committed
Update the test case
1 parent 8a1be70 commit d68b92d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Tests/Tests/SDImageCoderTests.m

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -562,12 +562,12 @@ - (void)test29ThatJFIFDecodeOrientationShouldNotApplyTwice {
562562

563563
UIImage *systemImage = [[UIImage alloc] initWithData:data];
564564
#if SD_UIKIT
565-
orientation = image.imageOrientation;
565+
orientation = systemImage.imageOrientation;
566566
expect(orientation).equal(UIImageOrientationDown);
567567
#endif
568568

569-
// Check bitmap color equal, between our usage of ImageIO decoder and Apple system inernal
570-
// So, this means, even Apple has bugs, we have bugs too :)
569+
// Check bitmap color equal, between our usage of ImageIO decoder and Apple system API behavior
570+
// So, this means, if Apple has bugs, we have bugs too, it's not our fault :)
571571
UIColor *testColor1 = [image sd_colorAtPoint:CGPointMake(1, 1)];
572572
UIColor *testColor2 = [systemImage sd_colorAtPoint:CGPointMake(1, 1)];
573573
CGFloat r1, g1, b1, a1;

0 commit comments

Comments
 (0)