From a8788c83f1126a9f2a962b5037e6dacf46469397 Mon Sep 17 00:00:00 2001 From: jdescottes Date: Fri, 22 Aug 2014 00:51:35 +0200 Subject: [PATCH] add drawing tests to casper --- test/integration/casperjs/DrawingTest.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 () {