Author: ygrego Date: 2015-02-17 16:00:32 +0000 (Tue, 17 Feb 2015) New Revision: 816 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/816 Log: Deletion of constants in every test method and property testsDescription. Modified: oipf/js/test/VideoBroadcastTest.js Modified: oipf/js/test/VideoBroadcastTest.js =================================================================== --- oipf/js/test/VideoBroadcastTest.js 2015-02-17 15:55:32 UTC (rev 815) +++ oipf/js/test/VideoBroadcastTest.js 2015-02-17 16:00:32 UTC (rev 816) @@ -4,24 +4,6 @@ * */ var VideoBroadcastTest = TestCase.extend({ - - testsDescriptions: [{ - name : VideoBroadcastObject, - object : "", - tests : [{ - id : METH_ID_TEST_VB_INSTANCE_CREATION, - label : LABEL_TEST_VB_TEST_INSTANCE_CREATION, - method : METH_NAME_TEST_VB_INSTANCE_CREATION, - result : "" - }, - { - id : METH_ID_TEST_BIND_TO_CURRENT_CHANNEL, - label : LABEL_TEST_BIND_TO_CURRENT_CHANNEL, - method :METH_NAME_TEST_BIND_TO_CURRENT_CHANNEL, - result : "" - } - ] - }], videoBroadcastObject: null, @@ -34,14 +16,14 @@ */ testInstanceCreation: function() { var state = "Pending"; - console.log("[TEST-RUNNING][Info] "+"Id: "+METH_ID_TEST_VB_INSTANCE_CREATION+", Label: "+LABEL_TEST_VB_TEST_INSTANCE_CREATION+", State: "+state); + console.log("[TEST-RUNNING][Info] Id: vbTestInstanceCreation, Label: Object creation, State: "+state); this.videoBroadcastObject = oipfObjectFactory.createVideoBroadcastObject(); this.assertNotNull(this.videoBroadcastObject); this.assertNotUndefined(this.videoBroadcastObject); state = "Finished"; - console.log("[TEST-RUNNING][Info] "+"Id: "+METH_ID_TEST_VB_INSTANCE_CREATION+", Label: "+LABEL_TEST_VB_TEST_INSTANCE_CREATION+", State: "+state); + console.log("[TEST-RUNNING][Info] Id: vbTestInstanceCreation, Label: Object creation, State: "+state); return true; }, @@ -52,13 +34,13 @@ */ testBindToCurrentChannel: function() { var state = "Pending"; - console.log("[TEST-RUNNING][Info] "+"Id: "+METH_ID_TEST_BIND_TO_CURRENT_CHANNEL+", Label: "+LABEL_TEST_BIND_TO_CURRENT_CHANNEL+", State: "+state); + console.log("[TEST-RUNNING][Info] Id: vbTestBindToCurrentChannel, Label: Bind the current channel stream with a video broadcast objectBind the current channel stream with a video broadcast object, State: "+state); var currentChann = this.videoBroadcastObject.bindToCurrentChannel(); this.assertEquals(this.videoBroadcastObject.currentChannel, currentChann); state = "Finished"; - console.log("[TEST-RUNNING][Info] "+"Id: "+METH_ID_TEST_BIND_TO_CURRENT_CHANNEL+", Label: "+LABEL_TEST_BIND_TO_CURRENT_CHANNEL+", State: "+state); + console.log("[TEST-RUNNING][Info] Id: vbTestBindToCurrentChannel, Label: Bind the current channel stream with a video broadcast objectBind the current channel stream with a video broadcast object, State: "+state); return true; }