mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-11 23:14:48 +00:00
refactored test
This commit is contained in:
parent
002b3b3805
commit
c69e18bc6e
@ -36,11 +36,12 @@
|
||||
- (void)testVideoNodeDoesNotReplaceAVPlayerItemWhenSameURLIsSet {
|
||||
ASVideoNode *videoNode = [[ASVideoNode alloc] init];
|
||||
videoNode.interfaceState = ASInterfaceStateFetchData;
|
||||
AVAsset *asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
|
||||
|
||||
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
|
||||
videoNode.asset = asset;
|
||||
AVPlayerItem *item = [videoNode currentItem];
|
||||
|
||||
videoNode.asset = [AVAsset assetWithURL:[NSURL URLWithString:@"firstURL"]];
|
||||
videoNode.asset = asset;
|
||||
AVPlayerItem *secondItem = [videoNode currentItem];
|
||||
|
||||
XCTAssertEqualObjects(item, secondItem);
|
||||
|
Loading…
x
Reference in New Issue
Block a user