Commit d3cd9032 d3cd9032cce21bffabde6b633fda15a0e27f71ff by Nicolas Perriault

closes #335 - dropped support for phantomjs 1.6 (1.7 & 1.8 are both supported)

1 parent 69464641
......@@ -4,6 +4,12 @@ CasperJS Changelog
XXXX-XX-XX, v1.0.0
------------------
### Important Changes & Caveats
- PhantomJS 1.6.x support has been dropped. Both PhantomJS 1.7 & 1.8 will be supported.
### Bugfixes & enhancements
- fixed `page.initialized` event didn't get the initialized `WebPage` instance
- fixed a bug preventing `Casper.options.onPageInitialized()` from being called
- fixed [#215](https://github.com/n1k0/casperjs/issues/215) - fixed broken `--fail-fast` option creating an endless loop on error
......
......@@ -36,8 +36,8 @@ if (!phantom) {
phantom.exit(1);
}
if (phantom.version.major === 1 && phantom.version.minor < 6) {
console.error('CasperJS needs at least PhantomJS v1.6.0 or later.');
if (phantom.version.major === 1 && phantom.version.minor < 7) {
console.error('CasperJS needs at least PhantomJS v1.7 or later.');
phantom.exit(1);
} else {
bootstrap(window);
......
......@@ -19,5 +19,5 @@ high-level functions, methods & syntaxic sugar for doing common tasks."
s.bindir = "rubybin"
s.executables = [ "casperjs" ]
s.license = "MIT"
s.requirements = [ "PhantomJS v1.6" ]
s.requirements = [ "PhantomJS v1.7" ]
end
......
......@@ -1343,9 +1343,6 @@ Casper.prototype.runStep = function runStep(step) {
*/
Casper.prototype.sendKeys = function(selector, keys, options) {
"use strict";
if (phantom.version.major === 1 && phantom.version.minor < 7) {
throw new CasperError('sendKeys() requires PhantomJS >= 1.7');
}
this.checkStarted();
options = utils.mergeObjects({
eventType: 'keypress'
......
......@@ -14,7 +14,7 @@
}
],
"dependencies": {
"http://www.phantomjs.org/": "1.6"
"http://www.phantomjs.org/": "1.7"
},
"bugs": {
"url": "https://github.com/n1k0/casperjs/issues"
......
/*jshint strict:false*/
/*global CasperError casper console phantom require*/
if (phantom.version.major === 1 && phantom.version.minor < 7) {
casper.test.pass('Skipping tests for PhantomJS < 1.7');
casper.test.done(1);
}
casper.start('tests/site/form.html', function() {
this.sendKeys('input[name="email"]', 'duke@nuk.em');
this.sendKeys('textarea', "Damn, I’m looking good.");
......