add drawing tests to casper
This commit is contained in:
parent
56b1f421bc
commit
a8788c83f1
1 changed files with 5 additions and 1 deletions
|
@ -22,10 +22,14 @@
|
|||
|
||||
casper.then(function () {
|
||||
this.echo('Waiting for test result : ' + resultSelector);
|
||||
this.waitForSelector(resultSelector, function() {
|
||||
this.waitForSelector(resultSelector, function () {
|
||||
// then
|
||||
var result = this.getHTML(resultSelector);
|
||||
this.echo('Test finished : ' + result);
|
||||
this.test.assertEquals(result, 'OK');
|
||||
}, function () {
|
||||
// onTimeout
|
||||
this.test.fail('Test timed out');
|
||||
}, 60*1000);
|
||||
})
|
||||
.run(function () {
|
||||
|
|
Loading…
Reference in a new issue