A suite to track Project Diva score statistics and ratings / D4DJ event data.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
projectdivar/server/node_modules/xmldom/test/dom/serializer.js

14 lines
686 B

var wows = require('vows');
var DOMParser = require('xmldom').DOMParser;
wows.describe('XML Serializer').addBatch({
'text node containing "]]>"': function() {
var doc = new DOMParser().parseFromString('<test/>', 'text/xml');
doc.documentElement.appendChild(doc.createTextNode('hello ]]> there'));
console.assert(doc.documentElement.firstChild.toString() == 'hello ]]> there',doc.documentElement.firstChild.toString());
},
'<script> element with no children': function() {
var doc = new DOMParser().parseFromString('<html><script></script></html>', 'text/html');
console.assert(doc.documentElement.firstChild.toString() == '<script></script>');
},
}).run();