Don't give up too early when waiting for fonts

This commit is contained in:
ahocevar
2019-07-04 16:11:02 +02:00
parent 5616c535b0
commit ab2d97d49b
2 changed files with 3 additions and 3 deletions

View File

@@ -17,10 +17,10 @@ describe('ol.render.canvas', function() {
render.measureTextHeight('12px sans-serif');
});
const retries = 60;
const retries = 100;
it('does not clear label cache and measurements for unavailable fonts', function(done) {
this.timeout(3000);
this.timeout(4000);
const spy = sinon.spy();
listen(render.labelCache, 'clear', spy);
const interval = setInterval(function() {