Compute new image extent for comparison to existing image extent
This commit is contained in:
@@ -155,6 +155,14 @@ describe('ol.source.ImageWMS', function() {
|
||||
expect(imageLoadFunction.calledWith(image, image.src_)).to.be(true);
|
||||
});
|
||||
|
||||
it('returns the same image for consecutive calls with the same args', function() {
|
||||
var extent = [10.01, 20, 30.01, 40];
|
||||
var source = new ol.source.ImageWMS(options);
|
||||
var image1 = source.getImage(extent, resolution, pixelRatio, projection);
|
||||
var image2 = source.getImage(extent, resolution, pixelRatio, projection);
|
||||
expect(image1).to.equal(image2);
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
describe('#getGetFeatureInfo', function() {
|
||||
|
||||
Reference in New Issue
Block a user