[Pkg-javascript-commits] [ltx] 187/469: test_parse: text with commas
Jonas Smedegaard
dr at jones.dk
Wed Aug 31 13:01:54 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 878b2d30c1e6597d7b26c1badd4fef33cfb545ca
Author: Astro <astro at spaceboyz.net>
Date: Mon Dec 12 17:19:35 2011 +0100
test_parse: text with commas
---
test/test_parse.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/test/test_parse.js b/test/test_parse.js
index 423f416..e44629a 100644
--- a/test/test_parse.js
+++ b/test/test_parse.js
@@ -9,6 +9,10 @@ vows.describe('ltx').addBatch({
assert.equal(el.name, 'root');
assert.equal(0, el.children.length);
},
+ 'text with commas': function() {
+ var el = ltx.parse("<body>sa'sa'1'sasa</body>");
+ assert.equal("sa'sa'1'sasa", el.getText());
+ },
'erroneous document raises error': function() {
assert.throws(function() {
ltx.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