/* automatically generated by JSCoverage - do not edit */
if (typeof _$jscoverage === 'undefined') _$jscoverage = {};
if (! _$jscoverage['browserify/test/seq.js']) {
  _$jscoverage['browserify/test/seq.js'] = [];
  _$jscoverage['browserify/test/seq.js'][1] = 0;
  _$jscoverage['browserify/test/seq.js'][2] = 0;
  _$jscoverage['browserify/test/seq.js'][3] = 0;
  _$jscoverage['browserify/test/seq.js'][4] = 0;
  _$jscoverage['browserify/test/seq.js'][5] = 0;
  _$jscoverage['browserify/test/seq.js'][7] = 0;
  _$jscoverage['browserify/test/seq.js'][8] = 0;
  _$jscoverage['browserify/test/seq.js'][10] = 0;
  _$jscoverage['browserify/test/seq.js'][11] = 0;
  _$jscoverage['browserify/test/seq.js'][13] = 0;
  _$jscoverage['browserify/test/seq.js'][18] = 0;
  _$jscoverage['browserify/test/seq.js'][20] = 0;
  _$jscoverage['browserify/test/seq.js'][21] = 0;
  _$jscoverage['browserify/test/seq.js'][22] = 0;
  _$jscoverage['browserify/test/seq.js'][23] = 0;
  _$jscoverage['browserify/test/seq.js'][24] = 0;
  _$jscoverage['browserify/test/seq.js'][26] = 0;
  _$jscoverage['browserify/test/seq.js'][28] = 0;
  _$jscoverage['browserify/test/seq.js'][29] = 0;
  _$jscoverage['browserify/test/seq.js'][30] = 0;
  _$jscoverage['browserify/test/seq.js'][33] = 0;
  _$jscoverage['browserify/test/seq.js'][34] = 0;
  _$jscoverage['browserify/test/seq.js'][35] = 0;
  _$jscoverage['browserify/test/seq.js'][37] = 0;
  _$jscoverage['browserify/test/seq.js'][40] = 0;
  _$jscoverage['browserify/test/seq.js'][41] = 0;
}
_$jscoverage['browserify/test/seq.js'][1]++;
var connect = require("connect");
_$jscoverage['browserify/test/seq.js'][2]++;
var http = require("http");
_$jscoverage['browserify/test/seq.js'][3]++;
var vm = require("vm");
_$jscoverage['browserify/test/seq.js'][4]++;
var browserify = require("../");
_$jscoverage['browserify/test/seq.js'][5]++;
var test = require("tap").test;
_$jscoverage['browserify/test/seq.js'][7]++;
test("seq", (function (t) {
  _$jscoverage['browserify/test/seq.js'][8]++;
  t.plan(2);
  _$jscoverage['browserify/test/seq.js'][10]++;
  var port = 10000 + Math.floor(Math.random() * (Math.pow(2, 16) - 10000));
  _$jscoverage['browserify/test/seq.js'][11]++;
  var server = connect.createServer();
  _$jscoverage['browserify/test/seq.js'][13]++;
  server.use(browserify({mount: "/bundle.js", require: ["seq"]}));
  _$jscoverage['browserify/test/seq.js'][18]++;
  server.listen(port, makeRequest);
  _$jscoverage['browserify/test/seq.js'][20]++;
  function makeRequest() {
    _$jscoverage['browserify/test/seq.js'][21]++;
    var req = {host: "localhost", port: port, path: "/bundle.js"};
    _$jscoverage['browserify/test/seq.js'][22]++;
    http.get(req, (function (res) {
  _$jscoverage['browserify/test/seq.js'][23]++;
  t.equal(res.statusCode, 200);
  _$jscoverage['browserify/test/seq.js'][24]++;
  server.close();
  _$jscoverage['browserify/test/seq.js'][26]++;
  var context = {setTimeout: setTimeout};
  _$jscoverage['browserify/test/seq.js'][28]++;
  var src = "";
  _$jscoverage['browserify/test/seq.js'][29]++;
  res.on("data", (function (buf) {
  _$jscoverage['browserify/test/seq.js'][30]++;
  src += buf.toString();
}));
  _$jscoverage['browserify/test/seq.js'][33]++;
  res.on("end", (function () {
  _$jscoverage['browserify/test/seq.js'][34]++;
  vm.runInNewContext(src, context);
  _$jscoverage['browserify/test/seq.js'][35]++;
  context.require("seq")([1, 2, 3]).parMap((function (x) {
  _$jscoverage['browserify/test/seq.js'][37]++;
  this(null, x * 100);
})).seq((function () {
  _$jscoverage['browserify/test/seq.js'][40]++;
  t.deepEqual(this.stack, [100, 200, 300]);
  _$jscoverage['browserify/test/seq.js'][41]++;
  t.end();
}));
}));
}));
}
}));
_$jscoverage['browserify/test/seq.js'].source = ["var connect = require('connect');","var http = require('http');","var vm = require('vm');","var browserify = require('../');","var test = require('tap').test;","","test('seq', function (t) {","    t.plan(2);","    ","    var port = 10000 + Math.floor(Math.random() * (Math.pow(2,16) - 10000));","    var server = connect.createServer();","    ","    server.use(browserify({","        mount : '/bundle.js',","        require : [ 'seq' ],","    }));","    ","    server.listen(port, makeRequest);","    ","    function makeRequest () {","        var req = { host : 'localhost', port : port, path : '/bundle.js' };","        http.get(req, function (res) {","            t.equal(res.statusCode, 200);","            server.close();","            ","            var context = { setTimeout : setTimeout };","            ","            var src = '';","            res.on('data', function (buf) {","                src += buf.toString();","            });","            ","            res.on('end', function () {","                vm.runInNewContext(src, context);","                context.require('seq')([1,2,3])","                    .parMap(function (x) {","                        this(null, x * 100)","                    })","                    .seq(function () {","                        t.deepEqual(this.stack, [100,200,300]);","                        t.end();","                    })","                ;","            });","        });","    }","});"];
