mod: 1. change playback mode getter 2. fix playback mode test typo

This commit is contained in:
Insomnia 2020-11-20 15:44:27 +08:00
parent 35628a2a3b
commit d9409e6cd8
2 changed files with 4 additions and 1 deletions

View File

@ -248,6 +248,9 @@
}
- (SDAnimatedImagePlaybackMode)playbackMode {
if (!_initFinished) {
return SDAnimatedImagePlaybackModeNormal; // Default mode is normal
}
return _playbackMode;
}

View File

@ -602,7 +602,7 @@ static BOOL _isCalled;
expect(SDImageAPNGTestCoder.isCalled).equal(YES);
}
- (void)test31AnimatedImagePlaybackModeReverse {
- (void)test30AnimatedImagePlaybackModeReverse {
XCTestExpectation *expectation = [self expectationWithDescription:@"test SDAnimatedImageView playback reverse mode"];
SDAnimatedImageView *imageView = [SDAnimatedImageView new];