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
b177ec84
...
b177ec849c18421983397905b4da7b4bdea02d97
authored
2012-11-18 11:22:40 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed obsolete code
1 parent
7165a868
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
13 deletions
tests/suites/casper/confirm.js
tests/suites/casper/confirm.js
View file @
b177ec8
/*global casper*/
/*jshint strict:false*/
// skip this test for phantom versions < 1.5
if
(
phantom
.
version
.
major
===
1
&&
phantom
.
version
.
minor
<
6
)
{
casper
.
test
.
comment
(
'Skipped tests, PhantomJS 1.6 required'
);
casper
.
test
.
done
();
}
else
{
var
received
;
var
received
;
casper
.
setFilter
(
'page.confirm'
,
function
(
message
)
{
casper
.
setFilter
(
'page.confirm'
,
function
(
message
)
{
received
=
message
;
return
true
;
});
});
casper
.
start
(
'tests/site/confirm.html'
,
function
()
{
casper
.
start
(
'tests/site/confirm.html'
,
function
()
{
this
.
test
.
assert
(
this
.
getGlobal
(
'confirmed'
),
'confirmation received'
);
});
});
casper
.
run
(
function
()
{
casper
.
run
(
function
()
{
this
.
test
.
assertEquals
(
received
,
'are you sure?'
,
'confirmation message is ok'
);
this
.
test
.
done
();
});
}
});
...
...
Please
register
or
sign in
to post a comment