mirror of
https://github.com/encounter/phantomjs.git
synced 2026-03-30 11:35:11 -07:00
11 lines
261 B
JavaScript
11 lines
261 B
JavaScript
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);
|