Move State to ol.Tile
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
goog.provide('ol.test.rendering.reproj.Tile');
|
||||
|
||||
goog.require('ol.TileState');
|
||||
goog.require('ol.Tile');
|
||||
goog.require('ol.events');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.reproj.Tile');
|
||||
@@ -24,9 +24,9 @@ describe('ol.rendering.reproj.Tile', function() {
|
||||
tilesRequested++;
|
||||
return source.getTile(z, x, y, pixelRatio, sourceProjection);
|
||||
});
|
||||
if (tile.getState() == ol.TileState.IDLE) {
|
||||
if (tile.getState() == ol.Tile.State.IDLE) {
|
||||
ol.events.listen(tile, 'change', function(e) {
|
||||
if (tile.getState() == ol.TileState.LOADED) {
|
||||
if (tile.getState() == ol.Tile.State.LOADED) {
|
||||
expect(tilesRequested).to.be(expectedRequests);
|
||||
resembleCanvas(tile.getImage(), expectedUrl, 7.5, done);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user