From 9acbcb3b15bd722e1b13c7829a265848765f94ac Mon Sep 17 00:00:00 2001 From: John Bender Date: Tue, 27 Sep 2011 15:55:35 -0700 Subject: [PATCH] add test to guarantee that getEncodedText does not return html --- tests/unit/core/core.js | 1 + tests/unit/core/index.html | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/unit/core/core.js b/tests/unit/core/core.js index 707a4bf7..06eb651b 100644 --- a/tests/unit/core/core.js +++ b/tests/unit/core/core.js @@ -121,5 +121,6 @@ test( "$.fn.getEncodedText should return the encoded value where $.fn.text doesn't", function() { same( $("#encoded").text(), "foo>"); same( $("#encoded").getEncodedText(), "foo>"); + same( $("#unencoded").getEncodedText(), "foo"); }); })(jQuery); \ No newline at end of file diff --git a/tests/unit/core/index.html b/tests/unit/core/index.html index b9e65b5a..3a10d79c 100644 --- a/tests/unit/core/index.html +++ b/tests/unit/core/index.html @@ -32,6 +32,7 @@
foo>
+