Update test case

This commit is contained in:
lizhuoli 2021-10-18 21:44:01 +08:00
parent 4274158949
commit c0fbe7e3ef
1 changed files with 2 additions and 0 deletions

View File

@ -774,6 +774,7 @@
SDWebImageTestLoader *loader = [[SDWebImageTestLoader alloc] init];
NSURL *imageURL = [NSURL URLWithString:kTestJPEGURL];
expect([loader canRequestImageForURL:imageURL]).beTruthy();
expect([loader canRequestImageForURL:imageURL options:0 context:nil]).beTruthy();
NSError *imageError = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:nil];
expect([loader shouldBlockFailedURLWithURL:imageURL error:imageError]).equal(NO);
@ -797,6 +798,7 @@
manager.loaders = @[SDWebImageDownloader.sharedDownloader, loader];
NSURL *imageURL = [NSURL URLWithString:kTestJPEGURL];
expect([manager canRequestImageForURL:imageURL]).beTruthy();
expect([manager canRequestImageForURL:imageURL options:0 context:nil]).beTruthy();
NSError *imageError = [NSError errorWithDomain:NSURLErrorDomain code:NSURLErrorCancelled userInfo:nil];
expect([manager shouldBlockFailedURLWithURL:imageURL error:imageError]).equal(NO);