aboutsummaryrefslogtreecommitdiff
path: root/node_modules/sax/test/xmlns-issue-41.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2016-11-16 01:59:39 +0100
committerFlorian Dold <florian.dold@gmail.com>2016-11-16 02:00:31 +0100
commitbd65bb67e25a79b019d745b7262b2008ce2adb15 (patch)
tree89e1b032103a63737f1a703e6a943832ef261704 /node_modules/sax/test/xmlns-issue-41.js
parentf91466595b651721690133f58ab37f977539e95b (diff)
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/sax/test/xmlns-issue-41.js')
-rw-r--r--node_modules/sax/test/xmlns-issue-41.js68
1 files changed, 0 insertions, 68 deletions
diff --git a/node_modules/sax/test/xmlns-issue-41.js b/node_modules/sax/test/xmlns-issue-41.js
deleted file mode 100644
index 17ab45a0f..000000000
--- a/node_modules/sax/test/xmlns-issue-41.js
+++ /dev/null
@@ -1,68 +0,0 @@
-var t = require(__dirname)
-
- , xmls = // should be the same both ways.
- [ "<parent xmlns:a='http://ATTRIBUTE' a:attr='value' />"
- , "<parent a:attr='value' xmlns:a='http://ATTRIBUTE' />" ]
-
- , ex1 =
- [ [ "opennamespace"
- , { prefix: "a"
- , uri: "http://ATTRIBUTE"
- }
- ]
- , [ "attribute"
- , { name: "xmlns:a"
- , value: "http://ATTRIBUTE"
- , prefix: "xmlns"
- , local: "a"
- , uri: "http://www.w3.org/2000/xmlns/"
- }
- ]
- , [ "attribute"
- , { name: "a:attr"
- , local: "attr"
- , prefix: "a"
- , uri: "http://ATTRIBUTE"
- , value: "value"
- }
- ]
- , [ "opentag"
- , { name: "parent"
- , uri: ""
- , prefix: ""
- , local: "parent"
- , attributes:
- { "a:attr":
- { name: "a:attr"
- , local: "attr"
- , prefix: "a"
- , uri: "http://ATTRIBUTE"
- , value: "value"
- }
- , "xmlns:a":
- { name: "xmlns:a"
- , local: "a"
- , prefix: "xmlns"
- , uri: "http://www.w3.org/2000/xmlns/"
- , value: "http://ATTRIBUTE"
- }
- }
- , ns: {"a": "http://ATTRIBUTE"}
- , isSelfClosing: true
- }
- ]
- , ["closetag", "parent"]
- , ["closenamespace", { prefix: "a", uri: "http://ATTRIBUTE" }]
- ]
-
- // swap the order of elements 2 and 1
- , ex2 = [ex1[0], ex1[2], ex1[1]].concat(ex1.slice(3))
- , expected = [ex1, ex2]
-
-xmls.forEach(function (x, i) {
- t.test({ xml: x
- , expect: expected[i]
- , strict: true
- , opt: { xmlns: true }
- })
-})