diff options
Diffstat (limited to 'src/jquery/coreTest.js')
-rw-r--r-- | src/jquery/coreTest.js | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/jquery/coreTest.js b/src/jquery/coreTest.js index 436dcc5cb..78d4a275f 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("<div><b>Hello</b> cruel world!</div>")[0].innerHTML == "<div><b>Hello</b> cruel world!</div>", "Check escaped text" );
+ ok( $("#foo").text("<div><b>Hello</b> cruel world!</div>", true)[0].innerHTML == "Hello cruel world!", "Check stripped text" );
+});
\ No newline at end of file |