diff options
author | Florian Dold <florian.dold@gmail.com> | 2016-11-16 01:59:39 +0100 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2016-11-16 02:00:31 +0100 |
commit | bd65bb67e25a79b019d745b7262b2008ce2adb15 (patch) | |
tree | 89e1b032103a63737f1a703e6a943832ef261704 /node_modules/sax/test/buffer-overrun.js | |
parent | f91466595b651721690133f58ab37f977539e95b (diff) |
incrementally verify denoms
The denominations are not stored in a separate object store.
Diffstat (limited to 'node_modules/sax/test/buffer-overrun.js')
-rw-r--r-- | node_modules/sax/test/buffer-overrun.js | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/node_modules/sax/test/buffer-overrun.js b/node_modules/sax/test/buffer-overrun.js deleted file mode 100644 index 57d3c41fa..000000000 --- a/node_modules/sax/test/buffer-overrun.js +++ /dev/null @@ -1,26 +0,0 @@ -// set this really low so that I don't have to put 64 MB of xml in here. -var sax = require("../lib/sax") -var bl = sax.MAX_BUFFER_LENGTH -sax.MAX_BUFFER_LENGTH = 5; - -require(__dirname).test({ - expect : [ - ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 15\nChar: "], - ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 30\nChar: "], - ["error", "Max buffer length exceeded: tagName\nLine: 0\nColumn: 45\nChar: "], - ["opentag", { - "name": "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ", - "attributes": {}, - "isSelfClosing": false - }], - ["text", "yo"], - ["closetag", "ABCDEFGHIJKLMNOPQRSTUVWXYZABCDEFGHIJKLMNOPQRSTUVWXYZ"] - ] -}).write("<abcdefghijklmn") - .write("opqrstuvwxyzABC") - .write("DEFGHIJKLMNOPQR") - .write("STUVWXYZ>") - .write("yo") - .write("</abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ>") - .close(); -sax.MAX_BUFFER_LENGTH = bl |