Author: ygrego Date: 2015-04-01 13:41:10 +0000 (Wed, 01 Apr 2015) New Revision: 1020 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1020 Log: Additon of a new transition, and callback for the last one. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 13:32:25 UTC (rev 1019) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-01 13:41:10 UTC (rev 1020) @@ -701,19 +701,9 @@ self.vidBroadObj.setChannel(null); }); - this.addTransition(this.CONNECTING, this.PRESENTING); + this.addTransition(this.CONNECTING, this.CONNECTING); + this.addTransition(this.CONNECTING, this.PRESENTING, resolve); - this.vidBroadObj.onChannelChangeSucceeded = function(channel) { - - if (self.assertNotNull(channel) && self.assertEquals(self.vidBroadObj.playState, self.PRESENTING)) { - logTest("State: Successful"); - resolve("Success"); - } else { - logTest("State: Failure"); - reject("Failure : The channel is null for a unknown reason or wrong play state."); - } - }; - this.vidBroadObj.bindToCurrentChannel(); },
participants (1)
-
ygregoï¼ users.nuiton.org