UNPKG
casperjs
Version:
latest (1.1.4)
1.1.4
1.1.3
1.1.2
1.1.1
1.1.0
1.1.0-beta5
1.1.0-beta4
1.1.0-beta3
1.1.0-beta2
A navigation scripting & testing utility for PhantomJS and SlimerJS
casperjs.org
casperjs/casperjs
casperjs
/
tests
/
clitests
/
tester
/
step_throws.js
11 lines
(10 loc)
•
223 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
/*eslint strict:0*/
casper.
test
.
begin
(
'step throws'
,
1
,
function
(
test
) { casper.
start
(); casper.
then
(
function
(
) {
throw
new
Error
(
'oops!'
) }); casper.
run
(
function
(
) { test.
done
(); }) });