mirror of
https://github.com/niklasvh/html2canvas.git
synced 2023-08-10 21:13:10 +03:00
Increase mocha timeout for multiple-render tests
This commit is contained in:
parent
2f5f9f6e59
commit
4b771d558a
@ -27,6 +27,7 @@
|
|||||||
<script>
|
<script>
|
||||||
describe("Multiple renders", function() {
|
describe("Multiple renders", function() {
|
||||||
it("render correctly", function(done) {
|
it("render correctly", function(done) {
|
||||||
|
this.timeout(5000);
|
||||||
var d = 0;
|
var d = 0;
|
||||||
for (var i = 0; i < 10; i++) {
|
for (var i = 0; i < 10; i++) {
|
||||||
html2canvas(document.querySelector('#green-block')).then(function (canvas) {
|
html2canvas(document.querySelector('#green-block')).then(function (canvas) {
|
||||||
@ -43,6 +44,7 @@
|
|||||||
});
|
});
|
||||||
|
|
||||||
it("render correctly when non sequential", function(done) {
|
it("render correctly when non sequential", function(done) {
|
||||||
|
this.timeout(5000);
|
||||||
var d = 0;
|
var d = 0;
|
||||||
for (var i = 0; i < 10; i++) {
|
for (var i = 0; i < 10; i++) {
|
||||||
html2canvas(document.querySelector('#block'), {onclone: function(document) {
|
html2canvas(document.querySelector('#block'), {onclone: function(document) {
|
||||||
|
Loading…
Reference in New Issue
Block a user