Commit 1059771e 1059771e4ac6fdc6bb0c288c6e0a49ff6e537cf9 by Nicolas Perriault

fixed events.js sample using wrong event names

1 parent 89a3092c
......@@ -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');
});
......