X-Git-Url: http://git.asbjorn.it/?a=blobdiff_plain;ds=sidebyside;f=src%2Fjquery%2FcoreTest.js;h=78d4a275fdb37645ba34e3a31787cf82ccead227;hb=5acecf6e2814701f9e22f91f17fcb33ef910e88a;hp=436dcc5cbe579c9f95f63e1dd32205bfa953b6bb;hpb=cb0250f1fa5af5c84e858ea978fcaa1194f4694f;p=jquery.git diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 436dcc5..78d4a27 100644 --- a/src/jquery/coreTest.js +++ b/src/jquery/coreTest.js @@ -435,3 +435,7 @@ test("removeAttr(String", function() { ok( $('#mark').removeAttr("class")[0].className == "", "remove class" ); }); +test("text(String, Boolean)", function() { + ok( $("#foo").text("
Hello cruel world!
")[0].innerHTML == "<div><b>Hello</b> cruel world!</div>", "Check escaped text" ); + ok( $("#foo").text("
Hello cruel world!
", true)[0].innerHTML == "Hello cruel world!", "Check stripped text" ); +}); \ No newline at end of file