Skip to content

Commit a53eb92

Browse files
committed
Update the test case test23ThatThumbnailEncodeCalculation
This regression test should also been reverted
1 parent a99c0de commit a53eb92

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Tests/Tests/SDImageCoderTests.m

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -363,14 +363,7 @@ - (void)test23ThatThumbnailEncodeCalculation {
363363
SDImageCoderEncodeMaxPixelSize: @(thumbnailSize)
364364
}];
365365
UIImage *encodedImage = [UIImage sd_imageWithData:encodedData];
366-
// Encode keep aspect ratio, but will use scale down instead of scale up if we strip the image-io related info (to fix some Apple's bug)
367-
// See more in `SDCGImageCreateCopy`
368-
expect(image.sd_isDecoded).beFalsy();
369-
if (@available(iOS 15, tvOS 15, *)) {
370-
expect(encodedImage.size).equal(CGSizeMake(4000, 2628));
371-
} else {
372-
expect(encodedImage.size).equal(CGSizeMake(4000, 2629));
373-
}
366+
expect(encodedImage.size).equal(CGSizeMake(4000, 2629));
374367
}
375368

376369
- (void)test24ThatScaleSizeCalculation {

0 commit comments

Comments
 (0)