mirror of
https://github.com/piskelapp/piskel.git
synced 2023-08-10 21:12:52 +03:00
add drawing tests to casper
This commit is contained in:
parent
56b1f421bc
commit
a8788c83f1
@ -23,9 +23,13 @@
|
||||
casper.then(function () {
|
||||
this.echo('Waiting for test result : ' + resultSelector);
|
||||
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 New Issue
Block a user