Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

node-expat 1.6.0

  • Loading branch information...
commit f6538292154eceac68ad255e7be4a9713a23aa1d 1 parent bde1fcb
@astro astro authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  package.json
  2. +3 −3 test.js
View
2  package.json
@@ -1,5 +1,5 @@
{ "name": "node-expat"
-,"version": "1.5.0"
+,"version": "1.6.0"
,"main": "./lib/node-expat"
,"description": "NodeJS binding for fast XML parsing."
,"keywords": ["xml","sax","expat","libexpat","parse","parsing"]
View
6 test.js
@@ -186,7 +186,7 @@ vows.describe('node-expat').addBatch({
var p = new expat.Parser("UTF-8");
expectWithParserAndStep("<start><first /><second>text</second>", [['startElement', 'start', {}], ['startElement', 'first', {}], ['endElement', 'first'], ['startElement', 'second', {}], ['text', "text"], ['endElement', 'second']], p, 1000);
p.reset();
- expectWithParserAndStep("<restart><third>moretext</third><fourth /></restart>", [['startElement', 'restart', {}], ['startElement', 'third', {}], ['text', "moretext"], ['endElement', 'third'], ['startElement', 'fourth', {}], ['endElement', 'fourth'], ['endElement', 'restart']], p, 1000);
+ expectWithParserAndStep("<restart><third>moretext</third><fourth /></restart>", [['startElement', 'restart', {}], ['startElement', 'third', {}], ['text', "moretext"], ['endElement', 'third'], ['startElement', 'fourth', {}], ['endElement', 'fourth'], ['endElement', 'restart']], p, 1000);
},
'with doc error': function() {
var p = new expat.Parser("UTF-8");
@@ -259,8 +259,8 @@ vows.describe('node-expat').addBatch({
var p = new expat.Parser("UTF-8");
p.parse('');
assert.ok(true, "Did not segfault");
- },
-
+ },
+
'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");
Please sign in to comment.
Something went wrong with that request. Please try again.