Code garden for test cases

This commit is contained in:
DreamPiggy 2023-07-14 00:03:06 +08:00
parent 8f16a63d7f
commit 8efa42e6bc
3 changed files with 3 additions and 4 deletions

View File

@ -42,7 +42,6 @@ static inline size_t SDByteAlign(size_t size, size_t alignment) {
}
/// The pixel format about the information to call `CGImageCreate` suitable for current hardware rendering
///
typedef struct SDImagePixelFormat {
/// Typically is pre-multiplied RGBA8888 for alpha image, RGBX8888 for non-alpha image.
CGBitmapInfo bitmapInfo;

View File

@ -131,8 +131,8 @@
}];
expect(image.scale).equal(format.scale);
UIColor *testColor = [image sd_colorAtPoint:CGPointMake(50, 50)];
NSLog(@"Draw Color ColorSpace: %@", testColor.CGColor);
expect(testColor.sd_hexString).equal(color.sd_hexString);
NSLog(@"Test Color ColorSpace: %@", testColor.CGColor);
expect(testColor.redComponent).equal(color.sd_hexString);
UIColor *grayscaleColor = UIColor.blackColor;
UIImage *grayscaleImage = [renderer imageWithActions:^(CGContextRef _Nonnull context) {

View File

@ -309,7 +309,7 @@
}
}];
[self waitForExpectationsWithTimeout:100 handler:^(NSError * _Nullable error) {
[self waitForExpectationsWithCommonTimeoutUsingHandler:^(NSError * _Nullable error) {
SDImageCoderHelper.defaultScaleDownLimitBytes = defaultLimitBytes;
}];
}