made changes so FLAnimatedImage is optional and updated PINCache and pod version

This commit is contained in:
Kurry
2015-09-13 14:28:39 -04:00
parent 1c82b99c85
commit 21e95bfd82
19 changed files with 1798 additions and 1610 deletions

View File

@@ -11,7 +11,9 @@
#import <PINRemoteImage/PINRemoteImage.h>
#import <PINRemoteImage/PINURLSessionManager.h>
#import <PINRemoteImage/UIImageView+PINRemoteImage.h>
#if USE_FLANIMATED_IMAGE
#import <FLAnimatedImage/FLAnimatedImage.h>
#endif
#import <PINCache/PINCache.h>
#if DEBUG
@@ -136,6 +138,7 @@
[super tearDown];
}
#if USE_FLANIMATED_IMAGE
- (void)testGIFDownload
{
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
@@ -153,6 +156,7 @@
XCTAssert(outAnimatedImage && [outAnimatedImage isKindOfClass:[FLAnimatedImage class]], @"Failed downloading animatedImage or animatedImage is not an FLAnimatedImage.");
XCTAssert(outImage == nil, @"Image is not nil.");
}
#endif
- (void)testInitWithNilConfiguration
{
@@ -427,6 +431,7 @@
[self waitForExpectationsWithTimeout:[self timeoutTimeInterval] handler:NULL];
}
#if USE_FLANIMATED_IMAGE
- (void)testFLAnimatedImageView
{
XCTestExpectation *imageSetExpectation = [self expectationWithDescription:@"animatedImageView did not have animated image set"];
@@ -441,6 +446,7 @@
[self waitForExpectationsWithTimeout:[self timeoutTimeInterval] handler:NULL];
}
#endif
- (void)testEarlyReturn {
dispatch_semaphore_t semaphore = dispatch_semaphore_create(0);
@@ -460,6 +466,7 @@
XCTAssert(image != nil, @"image callback did not occur synchronously.");
}
#if USE_FLANIMATED_IMAGE
- (void)testload
{
srand([[NSDate date] timeIntervalSince1970]);
@@ -492,6 +499,7 @@
}
dispatch_group_wait(group, [self timeoutWithInterval:100]);
}
#endif
- (void)testInvalidObject
{