[Pkg-javascript-commits] [node-expat] 10/371: test for entities

Jonas Smedegaard dr at jones.dk
Sun Feb 28 09:59:39 UTC 2016


This is an automated email from the git hooks/post-receive script.

js pushed a commit to branch master
in repository node-expat.

commit 28b59045c1676bc0ecdea02494d11915e1ad64ee
Author: Astro <astro at spaceboyz.net>
Date:   Sat May 22 15:45:29 2010 +0200

    test for entities
---
 test.js | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/test.js b/test.js
index c6742da..c8d3ee8 100644
--- a/test.js
+++ b/test.js
@@ -72,3 +72,11 @@ expect("<r><![CDATA[<greeting>Hello, world!</greeting>]]></r>",
        [['startElement', 'r', {}],
 	['text', "<greeting>Hello, world!</greeting>"],
 	['endElement', 'r']]);
+expect("<r>foo&bar</r>",
+       [['startElement', 'r', {}],
+	['text', "foo&bar"],
+	['endElement', 'r']]);
+expect("<r>ß</r>",
+       [['startElement', 'r', {}],
+	['text', "ß"],
+	['endElement', 'r']]);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-expat.git



More information about the Pkg-javascript-commits mailing list