Skip to content

Commit e252beb

Browse files
authored
Merge pull request #1 from SDWebImage/master
Update the test cases with new WebP sample URLs
2 parents 4861ce9 + 779dd7d commit e252beb

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
@@ -44,7 +44,7 @@ + (void)tearDown {
4444

4545
- (void)test01ThatWEBPWorks {
4646
XCTestExpectation *expectation = [self expectationWithDescription:@"WEBP"];
47-
NSURL *imageURL = [NSURL URLWithString:@"http://www.ioncannon.net/wp-content/uploads/2011/06/test2.webp"];
47+
NSURL *imageURL = [NSURL URLWithString:@"https://www.gstatic.com/webp/gallery3/1_webp_ll.png"];
4848
[[SDWebImageDownloader sharedDownloader] downloadImageWithURL:imageURL options:0 progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
4949
if (image && data && !error && finished) {
5050
[expectation fulfill];
@@ -57,7 +57,7 @@ - (void)test01ThatWEBPWorks {
5757

5858
- (void)test02ThatProgressiveWebPWorks {
5959
XCTestExpectation *expectation = [self expectationWithDescription:@"Progressive WebP download"];
60-
NSURL *imageURL = [NSURL URLWithString:@"http://www.ioncannon.net/wp-content/uploads/2011/06/test9.webp"];
60+
NSURL *imageURL = [NSURL URLWithString:@"https://www.gstatic.com/webp/gallery3/3_webp_ll.png"];
6161
[[SDWebImageDownloader sharedDownloader] downloadImageWithURL:imageURL options:SDWebImageDownloaderProgressiveLoad progress:nil completed:^(UIImage * _Nullable image, NSData * _Nullable data, NSError * _Nullable error, BOOL finished) {
6262
if (image && data && !error && finished) {
6363
[expectation fulfill];

0 commit comments

Comments
 (0)