Define variables before use
This commit is contained in:
@@ -23,13 +23,14 @@ describe('ol.source.ImageStatic', function() {
|
|||||||
projection: projection
|
projection: projection
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var image = source.getImage(extent, resolution, pixelRatio, projection);
|
||||||
|
|
||||||
source.on('imageloadend', function(event) {
|
source.on('imageloadend', function(event) {
|
||||||
expect(image.getImage().width).to.be(128);
|
expect(image.getImage().width).to.be(128);
|
||||||
expect(image.getImage().height).to.be(256);
|
expect(image.getImage().height).to.be(256);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
var image = source.getImage(extent, resolution, pixelRatio, projection);
|
|
||||||
image.load();
|
image.load();
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -43,13 +44,14 @@ describe('ol.source.ImageStatic', function() {
|
|||||||
projection: projection
|
projection: projection
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var image = source.getImage(extent, resolution, pixelRatio, projection);
|
||||||
|
|
||||||
source.on('imageloadend', function(event) {
|
source.on('imageloadend', function(event) {
|
||||||
expect(image.getImage().width).to.be(127);
|
expect(image.getImage().width).to.be(127);
|
||||||
expect(image.getImage().height).to.be(254);
|
expect(image.getImage().height).to.be(254);
|
||||||
done();
|
done();
|
||||||
});
|
});
|
||||||
|
|
||||||
var image = source.getImage(extent, resolution, pixelRatio, projection);
|
|
||||||
image.load();
|
image.load();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user