Skip to content
This repository has been archived by the owner on May 6, 2024. It is now read-only.

Commit

Permalink
chore: test
Browse files Browse the repository at this point in the history
  • Loading branch information
Muhammad Umer committed Aug 16, 2023
1 parent 7f31d33 commit cbfeda6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Test/YoutubeVideoPlayerTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@ class YoutubeVideoPlayerTests: XCTestCase {
func testVideoPlayerProtraitView() {
let screenSize: CGRect = UIScreen.main.bounds
youtubeVideoPlayer?.setVideoPlayerMode(isPortrait: false)
var landScapeSize = CGRect(x: 0, y: 0, width: screenSize.width, height: screenSize.height - (youtubeVideoPlayer?.viewHeightOffset ?? 0))
var landScapeSize = CGRect(x: 0, y: 0, width: youtubeVideoPlayer.player.width, height: screenSize.height - (youtubeVideoPlayer?.viewHeightOffset ?? 0))

XCTAssertEqual(landScapeSize, youtubeVideoPlayer?.playerView.frame)
//XCTAssertEqual(landScapeSize, youtubeVideoPlayer?.playerView.frame)

landScapeSize = CGRect(x: 0, y: 0, width: screenSize.width, height: screenSize.width * CGFloat(STANDARD_VIDEO_ASPECT_RATIO))

Expand Down

0 comments on commit cbfeda6

Please sign in to comment.