From b0a717871b72b9b5431c3a0b5220f85d1d8df86f Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Tue, 17 Jan 2023 17:32:02 +0800 Subject: [PATCH] Update the test case because upstream changes --- Tests/SDWebImageWebPCoderTests.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);