Author: ygrego Date: 2015-04-07 21:01:15 +0000 (Tue, 07 Apr 2015) New Revision: 1093 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1093 Log: Implementation of "beforeTest" in order to manage video-broadcast object. Modified: oipf/js/test/SearchManagerTest.js Modified: oipf/js/test/SearchManagerTest.js =================================================================== --- oipf/js/test/SearchManagerTest.js 2015-04-07 14:35:22 UTC (rev 1092) +++ oipf/js/test/SearchManagerTest.js 2015-04-07 21:01:15 UTC (rev 1093) @@ -13,6 +13,14 @@ beforeTest: function() { 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 = []; + this.previousState = this.vidBroadObj.playState; + this.currentIndex = 0; + this.channel = null; + logTest("State: Pending"); }, afterTest: function(resolve, reject) {
participants (1)
-
ygregoï¼ users.nuiton.org