aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/unclosed-root.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/unclosed-root.js')
-rw-r--r--node_modules/sax/test/unclosed-root.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/node_modules/sax/test/unclosed-root.js b/node_modules/sax/test/unclosed-root.js
new file mode 100644
index 000000000..f4eeac61b
--- /dev/null
+++ b/node_modules/sax/test/unclosed-root.js
@@ -0,0 +1,11 @@
+require(__dirname).test
+ ( { xml : "<root>"
+
+ , expect :
+ [ [ "opentag", { name: "root", attributes: {}, isSelfClosing: false } ]
+ , [ "error", "Unclosed root tag\nLine: 0\nColumn: 6\nChar: " ]
+ ]
+ , strict : true
+ , opt : {}
+ }
+ )