Author: ygrego Date: 2015-04-01 10:30:55 +0000 (Wed, 01 Apr 2015) New Revision: 1013 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1013 Log: "testReleaseInStopped" rewritting in order to call method "stop" after video-broadcast enter in presenting and addition of comment for this method. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-01 10:21:03 UTC (rev 1012) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-01 10:30:55 UTC (rev 1013) @@ -387,14 +387,23 @@ this.vidBroadObj.bindToCurrentChannel(); }, + /* + * Description: + * Method stop is called in presenting state(but can be also in connecting state). + * @param {type} resolve + * @param {type} reject + * @returns {undefined} + */ testReleaseInStopped: function(resolve, reject) { var self = this; - this.addTransition(this.UNREALIZED, this.CONNECTING, function() { + this.addTransition(this.UNREALIZED, this.CONNECTING); + + this.addTransition(this.CONNECTING, this.PRESENTING, function() { self.vidBroadObj.stop(); }); - this.addTransition(this.CONNECTING, this.STOPPED, function() { + this.addTransition(this.PRESENTING, this.STOPPED, function() { self.vidBroadObj.release(); });