Author: ygrego Date: 2015-06-12 11:51:07 +0000 (Fri, 12 Jun 2015) New Revision: 1707 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1707 Log: Redefine where and when the VideoBroadcastObject will be created at redefinion of somes tests classes for their launching on TV. Modified: oipf/test/js/RecordingSchedulerTest.js oipf/test/js/SearchManagerTest.js oipf/test/js/VideoBroadcastTest.js Modified: oipf/test/js/RecordingSchedulerTest.js =================================================================== --- oipf/test/js/RecordingSchedulerTest.js 2015-06-12 10:49:36 UTC (rev 1706) +++ oipf/test/js/RecordingSchedulerTest.js 2015-06-12 11:51:07 UTC (rev 1707) @@ -11,10 +11,6 @@ this.timer = 3 * 60 * 1000; //3minutes, we had increased timer for unresolved tests. } - createVideoBroadcast() { - this.vidBroadObj = oipfObjectFactory.createVideoBroadcastObject(); - } - deleteAndStopStartedRecording() { var recordings = this.recordingSchedulerObject.recordings; @@ -42,7 +38,7 @@ this.recordingSchedulerObject .addEventListener("PVREvent", this.onPVREventCopy, false); - this.createVideoBroadcast(); + this.createVideoBroadcastObject(); this.onPlayStateChange = this.onChangeState.bind(this, resolve, reject); this.vidBroadObj .addEventListener("PlayStateChange", this.onPlayStateChange, false); Modified: oipf/test/js/SearchManagerTest.js =================================================================== --- oipf/test/js/SearchManagerTest.js 2015-06-12 10:49:36 UTC (rev 1706) +++ oipf/test/js/SearchManagerTest.js 2015-06-12 11:51:07 UTC (rev 1707) @@ -11,8 +11,8 @@ } beforeTest(resolve, reject) { + this.createVideoBroadcastObject(); this.searchManagerObj = oipfObjectFactory.createSearchManagerObject(); - this.vidBroadObj = oipfObjectFactory.createVideoBroadcastObject(); this.onPlayStateChange = this.onChangeState.bind(this, resolve, reject); this.vidBroadObj.addEventListener("PlayStateChange", this.onPlayStateChange, false); this.transitions = []; Modified: oipf/test/js/VideoBroadcastTest.js =================================================================== --- oipf/test/js/VideoBroadcastTest.js 2015-06-12 10:49:36 UTC (rev 1706) +++ oipf/test/js/VideoBroadcastTest.js 2015-06-12 11:51:07 UTC (rev 1707) @@ -31,7 +31,7 @@ } beforeTest(resolve, reject) { - this.vidBroadObj = oipfObjectFactory.createVideoBroadcastObject(); + this.createVideoBroadcastObject(); this.onPlayStateChange = this.onChangeState.bind(this, resolve, reject); this.vidBroadObj.addEventListener("PlayStateChange", this.onPlayStateChange, false); this.transitions = [];