zulip/frontend_tests/casperjs/tests/suites/casper/exists.js

12 lines
311 B
JavaScript
Raw Normal View History

/*global casper*/
/*jshint strict:false*/
casper.test.comment('Casper.exists()');
casper.start('tests/site/index.html', function() {
this.test.assert(this.exists('a') && !this.exists('chucknorriz'), 'Casper.exists() can check if an element exists');
});
casper.run(function() {
this.test.done(1);
});