Adds helper function to obtain large video id from tests.
This commit is contained in:
parent
b875dc62dc
commit
a6a6d2992e
|
@ -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;
|
||||||
|
|
|
@ -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;
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue