diff options
Diffstat (limited to 'node_modules/sax/test/entity-mega.js')
-rw-r--r-- | node_modules/sax/test/entity-mega.js | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/node_modules/sax/test/entity-mega.js b/node_modules/sax/test/entity-mega.js new file mode 100644 index 000000000..4759a0224 --- /dev/null +++ b/node_modules/sax/test/entity-mega.js @@ -0,0 +1,16 @@ +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'] + ] +}); |