Commit 6c7ae14c 6c7ae14c070d84ae54a890a57aff19e27f84c7f3 by Nicolas Perriault

added a check to prevent casper running with phantomjs < 1.5

1 parent 3e41c7ba
......@@ -27,6 +27,10 @@
* DEALINGS IN THE SOFTWARE.
*
*/
if (phantom.version.major !== 1 || phantom.version.minor < 5) {
console.error('CasperJS needs at least PhantomJS v1.5.0');
phantom.exit(1);
}
/**
* Loads and initialize the CasperJS environment.
......
......@@ -14,7 +14,7 @@
}
],
"dependencies": {
"http://www.phantomjs.org/": "1.3"
"http://www.phantomjs.org/": "1.5"
},
"bugs": {
"url": "https://github.com/n1k0/casperjs/issues"
......