Commit 6c7ae14c 6c7ae14c070d84ae54a890a57aff19e27f84c7f3 by Nicolas Perriault

added a check to prevent casper running with phantomjs < 1.5

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