fixed typo and added backwards compatibility for 'visibilityDidChange'

This commit is contained in:
Luke Parham
2016-06-06 02:02:23 -05:00
parent e510120031
commit fc5467b110
12 changed files with 39 additions and 31 deletions

View File

@@ -223,12 +223,11 @@
}];
_videoNode.playerNode.layer.frame = CGRectZero;
[_videoNode visibileStateDidChange:YES];
[_videoNode visibleStateDidChange:YES];
XCTAssertTrue(_videoNode.shouldBePlaying);
}
- (void)testVideoShouldPauseWhenItLeavesVisibleButShouldKnowPlayingShouldRestartLater
{
_videoNode.asset = _firstAsset;