tikiwiki/packages/tiki-pkg-casperjs/jerome-breton/casperjs/tests/suites/casper/start.js
2023-11-20 20:52:04 +00:00

17 lines
573 B
JavaScript
Executable File

/*eslint strict:0*/
casper.test.begin('start() tests', 4, function(test) {
casper.start('tests/site/index.html', function() {
test.pass('Casper.start() can chain a next step');
test.assertTitle('CasperJS test index', 'Casper.start() opened the passed url');
test.assertEval(function() {
return typeof(__utils__) === "object";
}, 'Casper.start() injects ClientUtils instance within remote DOM');
});
test.assert(casper.started, 'Casper.start() started');
casper.run(function() {
test.done();
});
});