Author: ygrego Date: 2015-03-31 12:16:29 +0000 (Tue, 31 Mar 2015) New Revision: 1000 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1000 Log: Two methods added in this class : "testStopInConnecting" and "testStopInPresenting". Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-03-31 11:52:37 UTC (rev 999) +++ oipf/js/test/VideoBroadcastTest.js 2015-03-31 12:16:29 UTC (rev 1000) @@ -414,9 +414,21 @@ * Description: * Nominal Case */ - testStop: function(resolve, reject) { + testStopInConnecting: function(resolve, reject) { var self = this; + this.addTransition(this.UNREALIZED, this.CONNECTING, function() { + self.vidBroadObj.stop(); + }); + + this.addTransition(this.CONNECTING, this.STOPPED, resolve); + + this.vidBroadObj.bindToCurrentChannel(); + }, + + testStopInPresenting: function(resolve, reject) { + var self = this; + this.addTransition(this.UNREALIZED, this.CONNECTING); this.addTransition(this.CONNECTING, this.PRESENTING, function() {