diff options
Diffstat (limited to 'node_modules/sax/test/trailing-non-whitespace.js')
-rw-r--r-- | node_modules/sax/test/trailing-non-whitespace.js | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/node_modules/sax/test/trailing-non-whitespace.js b/node_modules/sax/test/trailing-non-whitespace.js new file mode 100644 index 000000000..619578b17 --- /dev/null +++ b/node_modules/sax/test/trailing-non-whitespace.js @@ -0,0 +1,18 @@ + +require(__dirname).test({ + xml : "<span>Welcome,</span> to monkey land", + expect : [ + ["opentag", { + "name": "SPAN", + "attributes": {}, + isSelfClosing: false + }], + ["text", "Welcome,"], + ["closetag", "SPAN"], + ["text", " to monkey land"], + ["end"], + ["ready"] + ], + strict : false, + opt : {} +}); |