Fix the test about alpha images force decode
Showing
1 changed file
with
2 additions
and
2 deletions
@@ -43,12 +43,12 @@ | @@ -43,12 +43,12 @@ | ||
43 | expect(decodedImage).to.equal(animatedImage); | 43 | expect(decodedImage).to.equal(animatedImage); |
44 | } | 44 | } |
45 | 45 | ||
46 | -- (void)test04ThatDecodedImageWithImageDoesNotDecodeImagesWithAlpha { | 46 | +- (void)test04ThatDecodedImageWithImageWorksWithAlphaImages { |
47 | NSString * testImagePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"TestImage" ofType:@"png"]; | 47 | NSString * testImagePath = [[NSBundle bundleForClass:[self class]] pathForResource:@"TestImage" ofType:@"png"]; |
48 | UIImage *image = [UIImage imageWithContentsOfFile:testImagePath]; | 48 | UIImage *image = [UIImage imageWithContentsOfFile:testImagePath]; |
49 | UIImage *decodedImage = [UIImage decodedImageWithImage:image]; | 49 | UIImage *decodedImage = [UIImage decodedImageWithImage:image]; |
50 | expect(decodedImage).toNot.beNil(); | 50 | expect(decodedImage).toNot.beNil(); |
51 | - expect(decodedImage).to.equal(image); | 51 | + expect(decodedImage).toNot.equal(image); |
52 | } | 52 | } |
53 | 53 | ||
54 | - (void)test05ThatDecodedImageWithImageWorksEvenWithMonochromeImage { | 54 | - (void)test05ThatDecodedImageWithImageWorksEvenWithMonochromeImage { |
-
Please register or login to post a comment