mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2026-02-10 13:06:33 +00:00
Merge pull request #1340 from ejensen/documentation-corrections
[Documentation] Various header documentation corrections and refinements.
This commit is contained in:
@@ -22,7 +22,10 @@
|
||||
ASBasicImageDownloader *downloader = [ASBasicImageDownloader sharedImageDownloader];
|
||||
|
||||
NSURL *URL = [NSURL URLWithString:@"http://wrongPath/wrongResource.png"];
|
||||
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma clang diagnostic ignored "-Wdeprecated-declarations"
|
||||
|
||||
__block BOOL firstDone = NO;
|
||||
|
||||
[downloader downloadImageWithURL:URL
|
||||
@@ -40,7 +43,9 @@
|
||||
completion:^(CGImageRef image, NSError *error) {
|
||||
secondDone = YES;
|
||||
}];
|
||||
|
||||
|
||||
#pragma clang diagnostic pop
|
||||
|
||||
sleep(3);
|
||||
XCTAssert(firstDone && secondDone, @"Not all ASBasicImageDownloader completion handlers have been called after 3 seconds");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user