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