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
1059771e
...
1059771e4ac6fdc6bb0c288c6e0a49ff6e537cf9
authored
2012-01-03 19:26:47 +0100
by
Nicolas Perriault
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fixed events.js sample using wrong event names
1 parent
89a3092c
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
samples/events.js
samples/events.js
View file @
1059771
...
...
@@ -4,23 +4,23 @@
*/
var
casper
=
require
(
'casper'
).
create
();
casper
.
on
(
'
casper.
http.status.200'
,
function
(
resource
)
{
casper
.
on
(
'http.status.200'
,
function
(
resource
)
{
casper
.
echo
(
resource
.
url
+
' is OK'
,
'INFO'
);
});
casper
.
on
(
'
casper.
http.status.301'
,
function
(
resource
)
{
casper
.
on
(
'http.status.301'
,
function
(
resource
)
{
casper
.
echo
(
resource
.
url
+
' is permanently redirected'
,
'PARAMETER'
);
});
casper
.
on
(
'
casper.
http.status.302'
,
function
(
resource
)
{
casper
.
on
(
'http.status.302'
,
function
(
resource
)
{
casper
.
echo
(
resource
.
url
+
' is temporarily redirected'
,
'PARAMETER'
);
});
casper
.
on
(
'
casper.
http.status.404'
,
function
(
resource
)
{
casper
.
on
(
'http.status.404'
,
function
(
resource
)
{
casper
.
echo
(
resource
.
url
+
' is not found'
,
'COMMENT'
);
});
casper
.
on
(
'
casper.
http.status.500'
,
function
(
resource
)
{
casper
.
on
(
'http.status.500'
,
function
(
resource
)
{
casper
.
echo
(
resource
.
url
+
' is in error'
,
'ERROR'
);
});
...
...
Please
register
or
sign in
to post a comment