unittests/tests/utils.js
branchpopcorn-port
changeset 362 0b1bf06c28ed
parent 361 15074091bdba
child 369 70bc85b31c6d
equal deleted inserted replaced
361:15074091bdba 362:0b1bf06c28ed
    50   test("test function to convert decimal color to hexadecimal", function() {
    50   test("test function to convert decimal color to hexadecimal", function() {
    51     equal(IriSP.DEC_HEXA_COLOR(125), "7D", "first test passes");
    51     equal(IriSP.DEC_HEXA_COLOR(125), "7D", "first test passes");
    52     equal(IriSP.DEC_HEXA_COLOR(24345), "5F19", "second test passes");
    52     equal(IriSP.DEC_HEXA_COLOR(24345), "5F19", "second test passes");
    53 
    53 
    54   });
    54   });
       
    55 
       
    56   test("test template function", function() {
       
    57     IriSP.default_templates_vars["test_fixture"] = "FIXTURE";
       
    58     equal(IriSP.templToHTML("{{test_fixture}} {{foo}}", {foo: 2}), "FIXTURE 2", "correct template returned"); 
       
    59   });
    55 }
    60 }