Do not pass inexistent argument

This commit is contained in:
Andreas Hocevar
2017-11-16 14:29:32 +01:00
parent 8e9b69cb9b
commit 000acfe854

View File

@@ -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);