mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Fix tests
This commit is contained in:
parent
6c08c3fa04
commit
3a3a61e316
@ -157,7 +157,9 @@ module.exports = function(grunt) {
|
||||
var selenium = require("./tests/selenium.js");
|
||||
var done = this.async();
|
||||
var browsers = (browser) ? [grunt.config.get(this.name + "." + browser)] : _.values(grunt.config.get(this.name));
|
||||
selenium.tests(browsers, test).finally(function() {
|
||||
selenium.tests(browsers, test).catch(function() {
|
||||
done(false);
|
||||
}).finally(function() {
|
||||
console.log("Done");
|
||||
done();
|
||||
});
|
||||
|
@ -113,6 +113,12 @@
|
||||
} else {
|
||||
throw new Error("Couldn't run test after 3 retries");
|
||||
}
|
||||
})
|
||||
.then(function(e) {
|
||||
if (e.message === "timeout error") {
|
||||
throw e;
|
||||
}
|
||||
return e;
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user