diff options
Diffstat (limited to 'node_modules/sax/test/self-closing-child-strict.js')
-rw-r--r-- | node_modules/sax/test/self-closing-child-strict.js | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/node_modules/sax/test/self-closing-child-strict.js b/node_modules/sax/test/self-closing-child-strict.js new file mode 100644 index 000000000..3d6e98520 --- /dev/null +++ b/node_modules/sax/test/self-closing-child-strict.js @@ -0,0 +1,44 @@ + +require(__dirname).test({ + xml : + "<root>"+ + "<child>" + + "<haha />" + + "</child>" + + "<monkey>" + + "=(|)" + + "</monkey>" + + "</root>", + expect : [ + ["opentag", { + "name": "root", + "attributes": {}, + "isSelfClosing": false + }], + ["opentag", { + "name": "child", + "attributes": {}, + "isSelfClosing": false + }], + ["opentag", { + "name": "haha", + "attributes": {}, + "isSelfClosing": true + }], + ["closetag", "haha"], + ["closetag", "child"], + ["opentag", { + "name": "monkey", + "attributes": {}, + "isSelfClosing": false + }], + ["text", "=(|)"], + ["closetag", "monkey"], + ["closetag", "root"], + ["end"], + ["ready"] + ], + strict : true, + opt : {} +}); + |