Sha256: e1c06967f249fae9bd74287915c1ee05bbe1f191db22d64a4bd01b2e442e238d

Contents?: true

Size: 923 Bytes

Versions: 45

Compression:

Stored size: 923 Bytes

Contents

// 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

Version data entries

45 entries across 45 versions & 3 rubygems

Version Path
process_engine-0.0.1.1 app/assets/bower_components/process_engine/sax/test/buffer-overrun.js
process_engine-0.0.1 app/assets/bower_components/process_engine/sax/test/buffer-overrun.js
stylus-source-0.49.3 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.42.2 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.42.1 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.42.0 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.41.3 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.41.2 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.41.1 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.41.0 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.40.3 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.40.2 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.40.1 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.40.0 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.39.4 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.39.3 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.39.2 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.39.1 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.39.0 vendor/node_modules/sax/test/buffer-overrun.js
stylus-source-0.38.0 vendor/node_modules/sax/test/buffer-overrun.js