aboutsummaryrefslogtreecommitdiff
path: root/tests/xml/writer.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2015-08-16 15:59:55 +0100
committerMichael Williamson <mike@zwobble.org>2015-08-16 15:59:55 +0100
commit4236b58ed1e5448b0ce43b87bf6b5df585db2a32 (patch)
treec413fd0f91ad864dd2370f4047137304ce9d9f49 /tests/xml/writer.tests.js
parenta2872927a9616ca63387c96e5c7c95b184bb6ebc (diff)
Don't include colon when using curly brace syntax for node names
Diffstat (limited to 'tests/xml/writer.tests.js')
-rw-r--r--tests/xml/writer.tests.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/xml/writer.tests.js b/tests/xml/writer.tests.js
index 7f9440f..d41ddc1 100644
--- a/tests/xml/writer.tests.js
+++ b/tests/xml/writer.tests.js
@@ -45,14 +45,14 @@ describe('xml.writer', function() {
});
test('can write root element with long-form prefix when URI is namespace', function() {
- var element = xml.element("{music}:root");
+ var element = xml.element("{music}root");
assertXmlString(element, {"m": "music"},
'<m:root xmlns:m="music"/>');
});
test('can write child elements with long-form prefix when URI is namespace', function() {
var element = xml.element("root", {}, [
- xml.element("{music}:album")
+ xml.element("{music}album")
]);
assertXmlString(element, {"m": "music"},
'<root xmlns:m="music"><m:album/></root>');
@@ -68,7 +68,7 @@ describe('xml.writer', function() {
test('default namespace has key of empty string', function() {
var element = xml.element("root", {}, [
- xml.element("{music}:album")
+ xml.element("{music}album")
]);
assertXmlString(element, {"": "music"},
'<root xmlns="music"><album/></root>');