Commit 6e24bd94 6e24bd943612a0de21306a1f33e7118c354e292d by Nicolas Perriault

added tests for alerts

1 parent 01cc9a77
1 Subproject commit a6a2706deca272222dc7a8d2e5d02024a17df402 1 Subproject commit 75bb9a657c05b2d139453af1ad0774024d3ba193
......
1 /*global casper*/
2 /*jshint strict:false*/
3
4 var ok = false;
5
6 casper.on('remote.alert', function(message) {
7 ok = message === 'plop';
8 });
9
10 casper.start('tests/site/alert.html').run(function() {
11 this.test.assert(ok, 'alert event has been intercepted');
12 this.test.done();
13 });