Author: ygrego Date: 2015-02-13 16:53:08 +0000 (Fri, 13 Feb 2015) New Revision: 804 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/804 Log: Addition of "VideoBroadcastTest.js". Added: oipf/js/test/VideoBroadcastTest.js Added: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js (rev 0) +++ oipf/js/test/VideoBroadcastTest.js 2015-02-13 16:53:08 UTC (rev 804) @@ -0,0 +1,43 @@ +/* + * Description: + * This class gather a set of method necessary to test a video broadcast object. + * + */ +var VideoBroadcastTest = Class.extend({ + + + videoBroadcastObject: null, + + init: function() { + }, + + /* + * Descrtiption: + * This method test the initialization of video broadcast object. + */ + instanceCreation: function() { + var METHOD_NAME = "instanceCreation"; + var ID = INSTANCE_CREATION_TEST_CONSTANTS+" :VB"; + var state = "Pending"; + console.log("[TEST-RUNNING][Info] "+"Id: "+ID+", Label: "+INSTANCE_CREATION_TEST_CONSTANTS+", State: "+state); + this.videoBroadcastObject = oipfObjectFactory.createVideoBroadcastObject(); + if ((this.videoBroadcastObject !== null) && (this.videoBroadcastObject !== undefined)) { + + var result = "Success"; + } else { + result = "Failed"; + } + state = "Finished"; + console.log("[TEST-RUNNING][Info] "+"Id: "+ID+", Label: "+this.INSTANCE_CREATION+", State: "+state); + + var testCase = [{ + "id" : ID, + "label" : this.INSTANCE_CREATION, + "method" : METHOD_NAME, + "result" : result + }]; + + return testCase; + } + +}); \ No newline at end of file