Commit 20ff4617 20ff46173aa9aa3b6a5be86d94a523c3989f31c9 by Nicolas Perriault

fixed erroneous version checks

1 parent e62a620e
...@@ -82,11 +82,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error()); ...@@ -82,11 +82,10 @@ CasperError.prototype = Object.getPrototypeOf(new Error());
82 // required version check 82 // required version check
83 if (version.major !== 1) { 83 if (version.major !== 1) {
84 return __die('CasperJS needs PhantomJS v1.x'); 84 return __die('CasperJS needs PhantomJS v1.x');
85 } 85 } if (version.minor < 8) {
86 if (version.minor < 8) {
87 return __die('CasperJS needs at least PhantomJS v1.8 or later.'); 86 return __die('CasperJS needs at least PhantomJS v1.8 or later.');
88 } 87 }
89 if (version.patch < 1) { 88 if (version.minor === 8 && version.patch < 1) {
90 return __die('CasperJS needs at least PhantomJS v1.8.1 or later.'); 89 return __die('CasperJS needs at least PhantomJS v1.8.1 or later.');
91 } 90 }
92 })(phantom.version); 91 })(phantom.version);
......