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
e4195f27
...
e4195f277d898ac5d7e9db622a5f8c14ccbbceb5
authored
2013-11-20 20:39:52 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
added missing test file - refs #721
1 parent
72f46162
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
1 deletions
tests/clitests/runtests.py
tests/clitests/tester/exit.js
tests/clitests/runtests.py
View file @
e4195f2
...
...
@@ -319,7 +319,17 @@ class TestCommandOutputTest(CasperExecTestBase):
@timeout
(
20
)
def
test_exit_test
(
self
):
script_path
=
os
.
path
.
join
(
TEST_ROOT
,
'tester'
,
'exit.js'
)
self
.
assertCommandOutputContains
(
'test '
+
script_path
,
[
'exited'
])
self
.
assertCommandOutputContains
(
'test '
+
script_path
,
[
script_path
,
'# sample'
,
'PASS Subject is strictly true'
,
'PASS 1 test executed'
,
'1 passed'
,
'0 failed'
,
'0 dubious'
,
'0 skipped.'
,
'exited'
])
@timeout
(
20
)
def
test_skipped_test
(
self
):
...
...
tests/clitests/tester/exit.js
0 → 100644
View file @
e4195f2
casper
.
test
.
on
(
"exit"
,
function
()
{
console
.
log
(
"exited"
);
})
casper
.
test
.
begin
(
"sample"
,
function
(
test
)
{
test
.
assert
(
true
);
test
.
done
();
});
Please
register
or
sign in
to post a comment