Code garden for test cases
This commit is contained in:
parent
8f16a63d7f
commit
8efa42e6bc
|
@ -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;
|
||||
|
|
|
@ -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) {
|
||||
|
|
|
@ -309,7 +309,7 @@
|
|||
}
|
||||
}];
|
||||
|
||||
[self waitForExpectationsWithTimeout:100 handler:^(NSError * _Nullable error) {
|
||||
[self waitForExpectationsWithCommonTimeoutUsingHandler:^(NSError * _Nullable error) {
|
||||
SDImageCoderHelper.defaultScaleDownLimitBytes = defaultLimitBytes;
|
||||
}];
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue