diff --git a/test/integration/casperjs/DrawingTest.js b/test/integration/casperjs/DrawingTest.js index 11472ec2..7955808d 100644 --- a/test/integration/casperjs/DrawingTest.js +++ b/test/integration/casperjs/DrawingTest.js @@ -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 () {