Do not pass inexistent argument
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user