Author: ygrego Date: 2015-03-31 11:50:32 +0000 (Tue, 31 Mar 2015) New Revision: 998 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/998 Log: Addition of following methods: "testReleaseInStopped", "testReleaseInPresenting", "testReleaseInConnecting". Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-03-31 09:23:42 UTC (rev 997) +++ oipf/js/test/VideoBroadcastTest.js 2015-03-31 11:50:32 UTC (rev 998) @@ -360,9 +360,21 @@ * Description: * Nominal Case */ - testRelease: function(resolve, reject) { + testReleaseInConnecting: function(resolve, reject) { var self = this; + this.addTransition(this.UNREALIZED, this.CONNECTING, function() { + self.vidBroadObj.release(); + }); + + this.addTransition(this.CONNECTING, this.UNREALIZED, resolve); + + this.vidBroadObj.bindToCurrentChannel(); + }, + + testReleaseInPresenting: function(resolve, reject) { + var self = this; + this.addTransition(this.UNREALIZED, this.CONNECTING); this.addTransition(this.CONNECTING, this.PRESENTING, function() { @@ -374,6 +386,22 @@ this.vidBroadObj.bindToCurrentChannel(); }, + testReleaseInStopped: function(resolve, reject) { + var self = this; + + this.addTransition(this.UNREALIZED, this.CONNECTING, function() { + self.vidBroadObj.stop(); + }); + + this.addTransition(this.CONNECTING, this.STOPPED, function() { + self.vidBroadObj.release(); + }); + + this.addTransition(this.STOPPED, this.UNREALIZED, resolve); + + this.vidBroadObj.bindToCurrentChannel(); + }, + // testRelease: function(resolve, reject) { // var self = this; //