aboutsummaryrefslogtreecommitdiffstats
path: root/src/jquery/coreTest.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/jquery/coreTest.js')
-rw-r--r--src/jquery/coreTest.js4
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 == "&lt;div&gt;&lt;b&gt;Hello&lt;/b&gt; cruel world!&lt;/div&gt;", "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