From 000acfe854ee69ef938f90b80b4aac4199317d26 Mon Sep 17 00:00:00 2001 From: Andreas Hocevar Date: Thu, 16 Nov 2017 14:29:32 +0100 Subject: [PATCH] Do not pass inexistent argument --- test/spec/ol/source/zoomify.test.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/test/spec/ol/source/zoomify.test.js b/test/spec/ol/source/zoomify.test.js index 4b9b2baef7..b3e78553d9 100644 --- a/test/spec/ol/source/zoomify.test.js +++ b/test/spec/ol/source/zoomify.test.js @@ -1,7 +1,6 @@ goog.require('ol'); -goog.require('ol.dom'); goog.require('ol.events'); goog.require('ol.proj.Projection'); goog.require('ol.source.Zoomify'); @@ -287,15 +286,13 @@ describe('ol.source.Zoomify', function() { }); it('"tile.getImage" returns and caches an unloaded image', function() { - // It'll only cache if the same context is passed, see below - var context = ol.dom.createCanvasContext2D(256, 256); var source = getZoomifySource(); var tile = source.getTile(0, 0, -1, 1, proj); - var img = tile.getImage(context); + var img = tile.getImage(); var tile2 = source.getTile(0, 0, -1, 1, proj); - var img2 = tile2.getImage(context); + var img2 = tile2.getImage(); expect(img).to.be.a(HTMLImageElement); expect(img).to.be(img2);