added a check to prevent casper running with phantomjs < 1.5
Showing
2 changed files
with
5 additions
and
1 deletions
... | @@ -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" | ... | ... |
-
Please register or sign in to post a comment