wallet-core/node_modules/sax/test/entity-mega.js
2016-11-03 01:33:53 +01:00

17 lines
321 B
JavaScript

var sax = require('../');
var xml = '<r>';
var text = '';
for (var i in sax.ENTITIES) {
xml += '&' + i + ';'
text += sax.ENTITIES[i]
}
xml += '</r>'
require(__dirname).test({
xml: xml,
expect: [
['opentag', {'name':'R', attributes:{}, isSelfClosing: false}],
['text', text],
['closetag', 'R']
]
});