[Pkg-javascript-commits] [node-expat] 262/371: Add a test for the escaping of ampersands

Jonas Smedegaard dr at jones.dk
Sun Feb 28 10:00:16 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 e1b976f9868e3e837965acc297cfccc791a4a9db
Author: Lloyd Watkin <lloyd.watkin at surevine.com>
Date:   Thu Aug 28 09:07:27 2014 +0100

    Add a test for the escaping of ampersands
---
 test.js | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/test.js b/test.js
index 46bb447..9b9a446 100644
--- a/test.js
+++ b/test.js
@@ -323,7 +323,12 @@ vows.describe('node-expat').addBatch({
 	    p.parse('');
 	    assert.ok(true, "Did not segfault");
 	},
-
+    'Escaping of ampersands': function() {
+	    expect('<e>foo & bar</e>',
+		[['startElement', 'e', {}],
+		['text', 'foo & bar'],
+		['endElement', 'e']])
+    },
 	'parsing twice the same document with the same parser instance should be fine': 'reset() not yet implemented'
 	/*function() {
 	   var p = new expat.Parser("UTF-8");

-- 
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