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
cdeaaf43
...
cdeaaf43e10dadfca702576347f6eaa10bfcdef8
authored
2012-12-23 09:11:30 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added tests for #101 (phantomjs 1.8 only)
1 parent
967ee185
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
0 deletions
tests/suites/casper/location.js
tests/suites/casper/location.js
0 → 100644
View file @
cdeaaf4
/*jshint strict:false*/
/*global CasperError casper console phantom require*/
if
(
phantom
.
version
.
major
===
1
&&
phantom
.
version
.
minor
<
8
)
{
// https://github.com/n1k0/casperjs/issues/101
casper
.
warn
(
'document.location is broken under phantomjs < 1.8'
);
casper
.
test
.
done
();
}
else
{
casper
.
start
(
'tests/site/index.html'
,
function
()
{
this
.
evaluate
(
function
()
{
document
.
location
=
'/tests/site/form.html'
;
});
});
casper
.
then
(
function
()
{
this
.
test
.
assertUrlMatches
(
/form
\.
html$/
);
});
casper
.
run
(
function
()
{
this
.
test
.
done
();
});
}
Please
register
or
sign in
to post a comment