[Pkg-javascript-commits] [ltx] 208/469: parse-test: test for entity unescaping
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:03:04 UTC 2016
This is an automated email from the git hooks/post-receive script.
js pushed a commit to branch master
in repository ltx.
commit 6dd4ce99a1dae05bb514e5ef6ddbed06a3c2896a
Author: Astro <astro at spaceboyz.net>
Date: Fri Mar 16 14:53:21 2012 +0100
parse-test: test for entity unescaping
---
test/parse-test.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/parse-test.js b/test/parse-test.js
index 7965ae0..acb44a6 100644
--- a/test/parse-test.js
+++ b/test/parse-test.js
@@ -17,6 +17,10 @@ ltx.availableSaxParsers.forEach(function(saxParser) {
var el = parse("<body>sa'sa'1'sasa</body>");
assert.equal("sa'sa'1'sasa", el.getText());
},
+ 'text with entities': function() {
+ var el = parse("<body><>&"apos;</body>");
+ assert.equal("<>&\"'", el.getText());
+ },
'erroneous document raises error': function() {
assert.throws(function() {
parse('<root></toor>');
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/ltx.git
More information about the Pkg-javascript-commits
mailing list