Merge pull request #5429 from probins/testenums
Remove enums from tests
This commit is contained in:
@@ -14,9 +14,9 @@ describe('ol.rendering.reproj.Image', function() {
|
||||
imagesRequested++;
|
||||
return source.getImage(extent, resolution, pixelRatio, sourceProj);
|
||||
});
|
||||
if (image.getState() == ol.ImageState.IDLE) {
|
||||
if (image.getState() == 0) { // IDLE
|
||||
ol.events.listen(image, 'change', function(e) {
|
||||
if (image.getState() == ol.ImageState.LOADED) {
|
||||
if (image.getState() == 2) { // LOADED
|
||||
expect(imagesRequested).to.be(1);
|
||||
resembleCanvas(image.getImage(), expectedUrl, IMAGE_TOLERANCE, done);
|
||||
}
|
||||
@@ -58,4 +58,3 @@ goog.require('ol.proj');
|
||||
goog.require('ol.proj.EPSG3857');
|
||||
goog.require('ol.reproj.Image');
|
||||
goog.require('ol.source.ImageStatic');
|
||||
goog.require('ol.ImageState');
|
||||
|
||||
Reference in New Issue
Block a user