Author: ygrego Date: 2015-04-01 13:06:32 +0000 (Wed, 01 Apr 2015) New Revision: 1017 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1017 Log: In method "testSetChannelInConnection" deletion of useless transition. In method "testSetChannelInConnectionWithNull" deletion of useless transition and addition of callback for first transition. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 12:33:31 UTC (rev 1016) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-01 13:06:32 UTC (rev 1017) @@ -674,13 +674,10 @@ testSetChannelInConnecting: function(resolve, reject) { var self = this; - this.addTransition(this.UNREALIZED, this.CONNECTING); - - this.addTransition(this.CONNECTING, this.PRESENTING, function() { + this.addTransition(this.UNREALIZED, this.CONNECTING, function() { self.vidBroadObj.setChannel(self.channel); }); - - this.addTransition(this.PRESENTING, this.CONNECTING); + this.addTransition(this.CONNECTING, this.PRESENTING); this.vidBroadObj.onChannelChangeSucceeded = function(channel) { @@ -696,16 +693,14 @@ this.vidBroadObj.bindToCurrentChannel(); }, + testSetChannelInConnectingWithNull: function(resolve, reject) { var self = this; - this.addTransition(this.UNREALIZED, this.CONNECTING); - - this.addTransition(this.CONNECTING, this.PRESENTING, function() { - self.vidBroadObj.setChannel(self.channel); + this.addTransition(this.UNREALIZED, this.CONNECTING, function() { + self.vidBroadObj.setChannel(null); }); - - this.addTransition(this.PRESENTING, this.CONNECTING); + this.addTransition(this.CONNECTING, this.PRESENTING); this.vidBroadObj.onChannelChangeSucceeded = function(channel) {