equal
deleted
inserted
replaced
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 } |