Commit 40fe596d 40fe596dabcf97ee60c8fa0ddacea0496b3dd062 by Nicolas Perriault

CasperJS' not compatible with PhantomJS 1.7 yet

1 parent bfca90b2
...@@ -33,9 +33,14 @@ ...@@ -33,9 +33,14 @@
33 if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) { 33 if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) {
34 console.error('CasperJS needs at least PhantomJS v1.5.0'); 34 console.error('CasperJS needs at least PhantomJS v1.5.0');
35 phantom.exit(1); 35 phantom.exit(1);
36 } else if (!phantom || phantom.version.major !== 1 || phantom.version.minor === 7) {
37 console.error('CasperJS is currently broken with PhantomJS 1.7, sorry.');
38 phantom.exit(1);
39 } else {
40 bootstrap(window);
36 } 41 }
37 42
38 (function bootstrap(global) { 43 function bootstrap(global) {
39 "use strict"; 44 "use strict";
40 /** 45 /**
41 * Loads and initialize the CasperJS environment. 46 * Loads and initialize the CasperJS environment.
...@@ -302,4 +307,4 @@ if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) { ...@@ -302,4 +307,4 @@ if (!phantom || phantom.version.major !== 1 || phantom.version.minor < 5) {
302 if (true === phantom.casperArgs.get('cli')) { 307 if (true === phantom.casperArgs.get('cli')) {
303 phantom.initCasperCli(); 308 phantom.initCasperCli();
304 } 309 }
305 })(window); 310 }
......