Skip to content

Commit b0a7178

Browse files
committed
Update the test case because upstream changes
1 parent 3af6540 commit b0a7178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Tests/SDWebImageWebPCoderTests.m

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -193,9 +193,9 @@ - (void)test34StaticImageNotCreateCGContext {
193193
NSURL *staticWebPURL = [[NSBundle bundleForClass:[self class]] URLForResource:@"TestImageStatic" withExtension:@"webp"];
194194
NSData *data = [NSData dataWithContentsOfURL:staticWebPURL];
195195
SDImageWebPCoder *coder = [[SDImageWebPCoder alloc] initWithAnimatedImageData:data options:nil];
196-
XCTAssertTrue(coder.animatedImageFrameCount == 1);
196+
XCTAssertTrue(coder.animatedImageFrameCount == 0);
197197
UIImage *image = [coder animatedImageFrameAtIndex:0];
198-
XCTAssertNotNil(image);
198+
XCTAssertNil(image);
199199
Ivar ivar = class_getInstanceVariable(coder.class, "_canvas");
200200
CGContextRef canvas = ((CGContextRef (*)(id, Ivar))object_getIvar)(coder, ivar);
201201
XCTAssert(canvas == NULL);

0 commit comments

Comments
 (0)