Adds helper function to obtain large video id from tests.

This commit is contained in:
damencho 2016-01-14 13:30:27 -06:00
parent b875dc62dc
commit a6a6d2992e
2 changed files with 16 additions and 0 deletions

View File

@ -790,4 +790,12 @@ UI.onStartMutedChanged = function () {
SettingsMenu.onStartMutedChanged(); SettingsMenu.onStartMutedChanged();
}; };
/**
* Returns the id of the current video shown on large.
* Currently used by tests (troture).
*/
UI.getLargeVideoID = function () {
return VideoLayout.getLargeVideoID();
};
module.exports = UI; module.exports = UI;

View File

@ -1027,6 +1027,14 @@ var VideoLayout = {
isLargeContainerTypeVisible (type) { isLargeContainerTypeVisible (type) {
return largeVideo && largeVideo.state === type; return largeVideo && largeVideo.state === type;
},
/**
* Returns the id of the current video shown on large.
* Currently used by tests (troture).
*/
getLargeVideoID () {
return largeVideo.id;
} }
}; };