mirror of https://github.com/zulip/zulip.git
14 lines
347 B
JavaScript
14 lines
347 B
JavaScript
/*global casper*/
|
|
/*jshint strict:false*/
|
|
casper.setFilter('page.prompt', function(message, value) {
|
|
return 'Chuck ' + value;
|
|
});
|
|
|
|
casper.start('tests/site/prompt.html', function() {
|
|
this.test.assertEquals(this.getGlobal('name'), 'Chuck Norris', 'prompted value has been received');
|
|
});
|
|
|
|
casper.run(function() {
|
|
this.test.done(1);
|
|
});
|