Commit 48becb30 48becb3007ed999011d475e66f9504f987ea8300 by Christophe Porteneuve

Test for fix on #687 ('fail' event fired in --fail-fast mode)

1 parent 78162b5d
1 /* global casper */
2
3 casper.test.on('fail', function doSomething() {
4 'use strict';
5 casper.echo('fail event fired!');
6 });
7 casper.test.begin('hook', 0, function(t) {
8 'use strict';
9 t.done();
10 });
...@@ -391,6 +391,7 @@ class TestCommandOutputTest(CasperExecTestBase): ...@@ -391,6 +391,7 @@ class TestCommandOutputTest(CasperExecTestBase):
391 self.assertCommandOutputContains('test %s --fail-fast' % folder_path, [ 391 self.assertCommandOutputContains('test %s --fail-fast' % folder_path, [
392 '# test 1', 392 '# test 1',
393 '# test 2', 393 '# test 2',
394 'fail event fired!',
394 '--fail-fast: aborted all remaining tests', 395 '--fail-fast: aborted all remaining tests',
395 'FAIL 2 tests executed', 396 'FAIL 2 tests executed',
396 '1 passed', 397 '1 passed',
......