wallet-core/node_modules/sax/test/flush.js

14 lines
280 B
JavaScript
Raw Normal View History

2016-11-03 01:33:53 +01:00
var parser = require(__dirname).test({
expect: [
['opentag', {'name':'T', attributes:{}, isSelfClosing: false}],
['text', 'flush'],
['text', 'rest'],
['closetag', 'T'],
]
});
parser.write('<T>flush');
parser.flush();
parser.write('rest</T>');
parser.close();