mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-24 07:05:35 +00:00
moved spinner to ASVIdeoPlayerNode
This commit is contained in:
@@ -50,13 +50,6 @@
|
||||
_requestedKeys = @[ @"playable" ];
|
||||
}
|
||||
|
||||
|
||||
- (void)testSpinnerDefaultsToNil
|
||||
{
|
||||
XCTAssertNil(_videoNode.spinner);
|
||||
}
|
||||
|
||||
|
||||
- (void)testOnPlayIfVideoIsNotReadyInitializeSpinnerAndAddAsSubnode
|
||||
{
|
||||
_videoNode.asset = _firstAsset;
|
||||
@@ -73,8 +66,6 @@
|
||||
{
|
||||
_videoNode.interfaceState = ASInterfaceStateFetchData;
|
||||
[_videoNode play];
|
||||
|
||||
XCTAssertNotNil(_videoNode.spinner);
|
||||
}
|
||||
|
||||
|
||||
@@ -96,8 +87,7 @@
|
||||
|
||||
[_videoNode play];
|
||||
[_videoNode pause];
|
||||
|
||||
XCTAssertFalse(((UIActivityIndicatorView *)_videoNode.spinner.view).isAnimating);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -119,8 +109,6 @@
|
||||
|
||||
[_videoNode play];
|
||||
[_videoNode observeValueForKeyPath:@"status" ofObject:[_videoNode currentItem] change:@{NSKeyValueChangeNewKey : @(AVPlayerItemStatusReadyToPlay)} context:NULL];
|
||||
|
||||
XCTAssertFalse(((UIActivityIndicatorView *)_videoNode.spinner.view).isAnimating);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user