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
01cc9a77
...
01cc9a772faf725e2ed971c7af96cbd7943539c4
authored
2012-11-10 17:27:34 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
removed obsolete compatibility layer in tests
1 parent
1a068884
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
12 deletions
tests/suites/casper/prompt.js
tests/suites/casper/prompt.js
View file @
01cc9a7
/*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
{
casper
.
setFilter
(
'page.prompt'
,
function
(
message
,
value
)
{
casper
.
setFilter
(
'page.prompt'
,
function
(
message
,
value
)
{
return
'Chuck '
+
value
;
});
});
casper
.
start
(
'tests/site/prompt.html'
,
function
()
{
casper
.
start
(
'tests/site/prompt.html'
,
function
()
{
this
.
test
.
assertEquals
(
this
.
getGlobal
(
'name'
),
'Chuck Norris'
,
'prompted value has been received'
);
});
});
casper
.
run
(
function
()
{
casper
.
run
(
function
()
{
this
.
test
.
done
();
});
}
});
...
...
Please
register
or
sign in
to post a comment