Commit 6e24bd94 6e24bd943612a0de21306a1f33e7118c354e292d by Nicolas Perriault

added tests for alerts

1 parent 01cc9a77
Subproject commit a6a2706deca272222dc7a8d2e5d02024a17df402
Subproject commit 75bb9a657c05b2d139453af1ad0774024d3ba193
......
/*global casper*/
/*jshint strict:false*/
var ok = false;
casper.on('remote.alert', function(message) {
ok = message === 'plop';
});
casper.start('tests/site/alert.html').run(function() {
this.test.assert(ok, 'alert event has been intercepted');
this.test.done();
});