aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/xmlns-unbound-element.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/sax/test/xmlns-unbound-element.js')
-rw-r--r--node_modules/sax/test/xmlns-unbound-element.js33
1 files changed, 0 insertions, 33 deletions
diff --git a/node_modules/sax/test/xmlns-unbound-element.js b/node_modules/sax/test/xmlns-unbound-element.js
deleted file mode 100644
index 9d031a2bd..000000000
--- a/node_modules/sax/test/xmlns-unbound-element.js
+++ /dev/null
@@ -1,33 +0,0 @@
-require(__dirname).test(
- { strict : true
- , opt : { xmlns: true }
- , expect :
- [ [ "error", "Unbound namespace prefix: \"unbound:root\"\nLine: 0\nColumn: 15\nChar: >"]
- , [ "opentag", { name: "unbound:root", uri: "unbound", prefix: "unbound", local: "root"
- , attributes: {}, ns: {}, isSelfClosing: true } ]
- , [ "closetag", "unbound:root" ]
- ]
- }
-).write("<unbound:root/>");
-
-require(__dirname).test(
- { strict : true
- , opt : { xmlns: true }
- , expect :
- [ [ "opennamespace", { prefix: "unbound", uri: "someuri" } ]
- , [ "attribute", { name: 'xmlns:unbound', value: 'someuri'
- , prefix: 'xmlns', local: 'unbound'
- , uri: 'http://www.w3.org/2000/xmlns/' } ]
- , [ "opentag", { name: "unbound:root", uri: "someuri", prefix: "unbound", local: "root"
- , attributes: { 'xmlns:unbound': {
- name: 'xmlns:unbound'
- , value: 'someuri'
- , prefix: 'xmlns'
- , local: 'unbound'
- , uri: 'http://www.w3.org/2000/xmlns/' } }
- , ns: { "unbound": "someuri" }, isSelfClosing: true } ]
- , [ "closetag", "unbound:root" ]
- , [ "closenamespace", { prefix: 'unbound', uri: 'someuri' }]
- ]
- }
-).write("<unbound:root xmlns:unbound=\"someuri\"/>");