Author: ygrego Date: 2015-02-19 13:22:19 +0000 (Thu, 19 Feb 2015) New Revision: 826 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/826 Log: Modification of attribute "impl" into object "testsObjects". This attirbute take either true or false. Now we test on value true or false into method display. Modified: oipf/js/test/Test.js Modified: oipf/js/test/Test.js =================================================================== --- oipf/js/test/Test.js 2015-02-18 17:28:54 UTC (rev 825) +++ oipf/js/test/Test.js 2015-02-19 13:22:19 UTC (rev 826) @@ -12,25 +12,25 @@ id: "vbTestInstanceCreation", label: "Object creation.", method: "testInstanceCreation", - impl: "Yes" + impl: true }, { id: "vbTestBindToCurrentChannel", label: "Bind the current channel stream with a video broadcast object.", method:"bindToCurrentChannel", - impl: "Yes" + impl: true }, { id: "vbTestPrevChannel", label: "Switch to precedent channel in channel list.", method: "testPrevChannel", - impl: "No" + impl: false }, { id: "vbTestNextChannel", label: "Switch to next channel in channel list.", method:"testNextChannel", - impl: "No" + impl: false } ] },*/ @@ -42,13 +42,13 @@ id: "smTestInstanceCreation", label: "Object creation.", method: "testInstanceCreation", - impl: "Yes" + impl: true }, { id: "smTestGetCurrentProgram", label: "Obtain current program according to oipf norm.", method: "testGetCurrentProgram", - impl: "Yes" + impl: true } ] }], @@ -65,7 +65,7 @@ for (var j = 0; j < tests.length; j++) { var currentTest = tests[j]; - if (currentTest["impl"] === "Yes") { + if (currentTest["impl"] === true) { this.updateTestResult(currentTest, object); } } @@ -90,7 +90,7 @@ var impl = currentTest["impl"]; content += "<div>Implementation State: " + impl + "</div>"; - if (impl === "Yes") { + if (impl === true) { 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 {