diff --git a/Tests/SDWebImageWebPCoderTests.m b/Tests/SDWebImageWebPCoderTests.m index ef1de63..324f8c7 100644 --- a/Tests/SDWebImageWebPCoderTests.m +++ b/Tests/SDWebImageWebPCoderTests.m @@ -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);