Author: ygrego Date: 2015-02-19 14:44:16 +0000 (Thu, 19 Feb 2015) New Revision: 831 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/831 Log: Deletion of operator "===" in condition test of "if instruction". Modified: oipf/js/test/Test.js Modified: oipf/js/test/Test.js =================================================================== --- oipf/js/test/Test.js 2015-02-19 14:41:17 UTC (rev 830) +++ oipf/js/test/Test.js 2015-02-19 14:44:16 UTC (rev 831) @@ -4,54 +4,52 @@ * and open the template in the editor. */ var Test = Class.extend({ - testsObjects: [/*{ - name : "VideoBroadcastTest", - object: new VideoBroadcastTest(), - tests: [ - { - id: "vbTestInstanceCreation", - label: "Object creation.", - method: "testInstanceCreation", - impl: true - }, - { - id: "vbTestBindToCurrentChannel", - label: "Bind the current channel stream with a video broadcast object.", - method:"bindToCurrentChannel", - impl: true - }, - { - id: "vbTestPrevChannel", - label: "Switch to precedent channel in channel list.", - method: "testPrevChannel", - impl: false - }, - { - id: "vbTestNextChannel", - label: "Switch to next channel in channel list.", - method:"testNextChannel", - impl: false - } - ] - },*/ - { - name: "SearchManagerTest", - object: new SearchManagerTest(), - tests: [ - { - id: "smTestInstanceCreation", - label: "Object creation.", - method: "testInstanceCreation", - impl: true - }, - { - id: "smTestGetCurrentProgram", - label: "Obtain current program according to oipf norm.", - method: "testGetCurrentProgram", - impl: true - } - ] - }], + testsObjects: [{ + name : "VideoBroadcastTest", + object: new VideoBroadcastTest(), + tests: [ + { + id: "vbTestInstanceCreation", + label: "Object creation.", + method: "testInstanceCreation", + impl: true + }/*, + { + id: "vbTestBindToCurrentChannel", + label: "Bind the current channel stream with a video broadcast object.", + method:"bindToCurrentChannel", + impl: true + }, + { + id: "vbTestPrevChannel", + label: "Switch to precedent channel in channel list.", + method: "testPrevChannel", + impl: false + }, + { + id: "vbTestNextChannel", + label: "Switch to next channel in channel list.", + method:"testNextChannel", + impl: false + }*/ + ]},{ + name: "SearchManagerTest", + object: new SearchManagerTest(), + tests: [ + { + id: "smTestInstanceCreation", + label: "Object creation.", + method: "testInstanceCreation", + impl: true + }, + { + id: "smTestGetCurrentProgram", + label: "Obtain current program according to oipf norm.", + method: "testGetCurrentProgram", + impl: true + } + ] + }], init: function () { }, @@ -65,7 +63,7 @@ for (var j = 0; j < tests.length; j++) { var currentTest = tests[j]; - if (currentTest["impl"] === true) { + if (currentTest["impl"]) { this.updateTestResult(currentTest, object); } } @@ -90,7 +88,7 @@ var impl = currentTest["impl"]; content += "<div>Implementation State: " + impl + "</div>"; - if (impl === true) { + if (impl) { content += "<div id='" + currentTest["id"] + "Res" + "'>Result: Test has not been launch. Click on button \"Run\" below.</div>"; content += "<div><button id='" + currentTest["id"] + "Btn" + "'>Run</button></div>"; } else {