Update the test case because upstream changes
This commit is contained in:
parent
3af65409f2
commit
b0a717871b
|
@ -193,9 +193,9 @@ const int64_t kAsyncTestTimeout = 5;
|
|||
NSURL *staticWebPURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImageStatic" withExtension:@"webp"];
|
||||
NSData *data = [NSData dataWithContentsOfURL:staticWebPURL];
|
||||
SDImageWebPCoder *coder = [[SDImageWebPCoder alloc] initWithAnimatedImageData:data options:nil];
|
||||
XCTAssertTrue(coder.animatedImageFrameCount == 1);
|
||||
XCTAssertTrue(coder.animatedImageFrameCount == 0);
|
||||
UIImage *image = [coder animatedImageFrameAtIndex:0];
|
||||
XCTAssertNotNil(image);
|
||||
XCTAssertNil(image);
|
||||
Ivar ivar = class_getInstanceVariable(coder.class, "_canvas");
|
||||
CGContextRef canvas = ((CGContextRef (*)(id, Ivar))object_getIvar)(coder, ivar);
|
||||
XCTAssert(canvas == NULL);
|
||||
|
|
Loading…
Reference in New Issue