Update the test case
This commit is contained in:
parent
8a1be70a62
commit
d68b92db85
|
@ -562,12 +562,12 @@
|
||||||
|
|
||||||
UIImage *systemImage = [[UIImage alloc] initWithData:data];
|
UIImage *systemImage = [[UIImage alloc] initWithData:data];
|
||||||
#if SD_UIKIT
|
#if SD_UIKIT
|
||||||
orientation = image.imageOrientation;
|
orientation = systemImage.imageOrientation;
|
||||||
expect(orientation).equal(UIImageOrientationDown);
|
expect(orientation).equal(UIImageOrientationDown);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Check bitmap color equal, between our usage of ImageIO decoder and Apple system inernal
|
// Check bitmap color equal, between our usage of ImageIO decoder and Apple system API behavior
|
||||||
// So, this means, even Apple has bugs, we have bugs too :)
|
// So, this means, if Apple has bugs, we have bugs too, it's not our fault :)
|
||||||
UIColor *testColor1 = [image sd_colorAtPoint:CGPointMake(1, 1)];
|
UIColor *testColor1 = [image sd_colorAtPoint:CGPointMake(1, 1)];
|
||||||
UIColor *testColor2 = [systemImage sd_colorAtPoint:CGPointMake(1, 1)];
|
UIColor *testColor2 = [systemImage sd_colorAtPoint:CGPointMake(1, 1)];
|
||||||
CGFloat r1, g1, b1, a1;
|
CGFloat r1, g1, b1, a1;
|
||||||
|
|
Loading…
Reference in New Issue