tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/tests/suites/tester/skip.js

23 lines
646 B
JavaScript
Raw Normal View History

2023-11-20 21:52:04 +01:00
/*eslint strict:0*/
casper.test.begin('Skip tests after', 4, function(test) {
test.assert(true, 'First test executed');
test.assert(true, 'Second test executed');
test.skip(2, 'Two tests skipped');
test.done();
});
casper.test.begin('Skip tests before', 4, function(test) {
test.skip(2, 'Two tests skipped');
test.assert(true, 'Third test executed');
test.assert(true, 'Fourth test executed');
test.done();
});
casper.test.begin('Skip tests (asynchronous)', 1, function(test) {
casper.start('tests/site/index.html', function() {
test.skip(1);
}).run(function() {
test.done();
});
});