unittests/tests/utils.js
branchpopcorn-port
changeset 369 70bc85b31c6d
parent 362 0b1bf06c28ed
child 374 138e76fe73a6
equal deleted inserted replaced
368:0d7326fe77e7 369:70bc85b31c6d
    55 
    55 
    56   test("test template function", function() {
    56   test("test template function", function() {
    57     IriSP.default_templates_vars["test_fixture"] = "FIXTURE";
    57     IriSP.default_templates_vars["test_fixture"] = "FIXTURE";
    58     equal(IriSP.templToHTML("{{test_fixture}} {{foo}}", {foo: 2}), "FIXTURE 2", "correct template returned"); 
    58     equal(IriSP.templToHTML("{{test_fixture}} {{foo}}", {foo: 2}), "FIXTURE 2", "correct template returned"); 
    59   });
    59   });
       
    60 
       
    61   test("test url encoding function", function() {
       
    62     equal(IriSP.encodeURI("!'()*"), "%21%27%28%29%2A", "the returned string is correct");
       
    63   });
    60 }
    64 }