Merge pull request #5429 from probins/testenums

Remove enums from tests
This commit is contained in:
Andreas Hocevar
2016-07-15 09:12:58 +02:00
committed by GitHub
41 changed files with 379 additions and 435 deletions

View File

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