Files

11 lines
261 B
JavaScript
Raw Permalink Normal View History

2014-09-03 23:14:31 -07:00
var assert = require('../assert');
var stack;
phantom.onError = function(message, s) { stack = s; };
var helperFile = "../fixtures/parse-error-helper.js";
phantom.injectJs(helperFile);
assert.equal(stack[0].file, helperFile);
assert.equal(stack[0].line, 2);