Author: ygrego Date: 2015-04-01 16:08:05 +0000 (Wed, 01 Apr 2015) New Revision: 1033 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1033 Log: Start implementation of method "testSetChannelInPresentingWithUnsupportedChannel". Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 16:01:22 UTC (rev 1032) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-01 16:08:05 UTC (rev 1033) @@ -791,5 +791,27 @@ this.vidBroadObj.bindToCurrentChannel(); + }, + + testSetChannelInPresentingWithUnsupportedChannel: 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(channel); + }); + + this.addTransition(this.STOPPED, this.UNREALIZED, resolve); + + this.vidBroadObj.bindToCurrentChannel(); + } }); \ No newline at end of file