Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
d3cd9032
...
d3cd9032cce21bffabde6b633fda15a0e27f71ff
authored
2012-12-23 18:14:14 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
closes #335 - dropped support for phantomjs 1.6 (1.7 & 1.8 are both supported)
1 parent
69464641
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
12 deletions
CHANGELOG.md
bin/bootstrap.js
casperjs.gemspec
modules/casper.js
package.json
tests/suites/casper/keys.js
CHANGELOG.md
View file @
d3cd903
...
...
@@ -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
...
...
bin/bootstrap.js
View file @
d3cd903
...
...
@@ -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
);
...
...
casperjs.gemspec
View file @
d3cd903
...
...
@@ -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
...
...
modules/casper.js
View file @
d3cd903
...
...
@@ -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'
...
...
package.json
View file @
d3cd903
...
...
@@ -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"
...
...
tests/suites/casper/keys.js
View file @
d3cd903
/*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."
);
...
...
Please
register
or
sign in
to post a comment