Author: ygrego Date: 2015-04-02 08:42:58 +0000 (Thu, 02 Apr 2015) New Revision: 1046 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/1046 Log: In this test case ("testNextChannelInUnrealized") the video-broadcast don't has to reveive events. The method "addTransition" is called and "onChannelChangeSucceded" implemented, but none of them won't be called. A timer is set in order to validate the test if none method hasn't been called. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-04-02 08:39:14 UTC (rev 1045) +++ oipf/js/test/VideoBroadcastTest.js 2015-04-02 08:42:58 UTC (rev 1046) @@ -357,7 +357,13 @@ // }, testNextChannelInUnrealized: function(resolve, reject) { + this.addTransition(null, null, reject); + this.vidBroadObj.onChannelChangeSucceeded = function(channel) { + reject(); + }; this.vidBroadObj.nextChannel(); + this.timeout(3000) + .then(resolve); }, testNextChannelInConnecting: function(resolve, reject) {