Author: ygrego Date: 2015-04-01 15:28:17 +0000 (Wed, 01 Apr 2015) New Revision: 1028 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1028 Log: All wanted transitions have been set in method "testSetChannelInStopped" and the variable "channel" has been initialized. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 15:08:17 UTC (rev 1027) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-01 15:28:17 UTC (rev 1028) @@ -702,6 +702,7 @@ this.vidBroadObj.bindToCurrentChannel(); }, + testSetChannelInConnectingWithNull: function(resolve, reject) { var self = this; @@ -742,6 +743,7 @@ this.vidBroadObj.bindToCurrentChannel(); }, + testSetChannelInPresentingWithNull: function(resolve, reject) { var self = this; @@ -760,13 +762,20 @@ testSetChannelInStopped: function(resolve, reject) { var self = this; + this.channel = this.getChannel( + this.vidBroadObj.getChannelConfig().channelList); + this.addTransition(this.UNREALIZED, this.CONNECTING); this.addTransition(this.CONNECTING, this.PRESENTING, function() { + self.vidBroadObj.stop(); + }); + + this.addTransition(this.PRESENTING, this.STOPPED, function() { self.vidBroadObj.setChannel(self.channel); }); - this.addTransition(this.PRESENTING, this.CONNECTING); + this.addTransition(this.STOPPED, this.CONNECTING); this.addTransition(this.CONNECTING, this.PRESENTING); this.vidBroadObj.onChannelChangeSucceeded = function(channel) { @@ -782,6 +791,7 @@ this.vidBroadObj.bindToCurrentChannel(); }, + testSetChannelInStoppedWithNull: function(resolve, reject) { var self = this;
participants (1)
-
ygregoï¼ users.nuiton.org