add drawing tests to casper

This commit is contained in:
jdescottes 2014-08-22 00:51:35 +02:00
parent 56b1f421bc
commit a8788c83f1

View File

@ -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 () {