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
3d5b91dd
...
3d5b91dd81e2b27194c1cfb6967d5a5bdfd2dfc4
authored
2013-03-06 23:19:45 +0100
by
Julien Muetton
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Add tests for `Tester.skip`
1 parent
e3b91c35
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
63 additions
and
0 deletions
tests/suites/casper/skip.js
tests/suites/casper/skip.js
0 → 100644
View file @
3d5b91d
/*global casper*/
/*jshint strict:false*/
casper
.
test
.
begin
(
'Skip tests'
,
1
,
function
(
test
)
{
casper
.
start
(
'tests/site/index.html'
);
casper
.
then
(
function
()
{
test
.
skip
(
1
);
}).
then
(
function
()
{
test
.
fail
(
"This test should be skipped."
);
}).
then
(
function
()
{
test
.
pass
(
"This test should be executed."
);
});
casper
.
run
(
function
()
{
test
.
done
();
});
});
casper
.
test
.
begin
(
'Skip multiple'
,
1
,
function
(
test
)
{
casper
.
then
(
function
()
{
test
.
skip
(
2
);
}).
then
(
function
()
{
test
.
fail
(
"This test should be skipped."
);
}).
then
(
function
()
{
test
.
fail
(
"This test should be skipped."
);
}).
then
(
function
()
{
test
.
pass
(
"This test should be executed."
);
});
casper
.
run
(
function
()
{
test
.
done
();
});
});
casper
.
test
.
begin
(
'Skip more than there is'
,
0
,
function
(
test
)
{
casper
.
then
(
function
()
{
test
.
skip
(
2
);
});
casper
.
run
(
function
()
{
test
.
done
();
});
});
casper
.
test
.
begin
(
'Next suite should be executed'
,
1
,
function
(
test
)
{
casper
.
then
(
function
()
{
test
.
pass
(
"This test should be executed."
);
});
casper
.
run
(
function
()
{
test
.
done
();
});
});
Please
register
or
sign in
to post a comment