Commit 89ac6366 89ac636684a322848d731aa21977eaa7520f1056 by Laurent Jouanneau

Refs #482: new property phantom.casperEngine storing the engine name

It will easier in the code to know the current engine.
1 parent db31a63b
......@@ -307,12 +307,14 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
// declare a dummy patchRequire function
require.globals.patchRequire = global.patchRequire = function(req) { return req;};
require.globals.CasperError = CasperError;
phantom.casperEngine = "slimerjs";
}
else {
// patch require
global.__require = require;
global.patchRequire = patchRequire; // must be called in every casperjs module as of 1.1
global.require = patchRequire(global.require);
phantom.casperEngine = "phantomjs";
}
// casper cli args
......