Unused intermediate canvas renderer
This commit is contained in:
@@ -18,7 +18,7 @@ import PinchZoom from '../../../src/ol/interaction/PinchZoom.js';
|
||||
import ImageLayer from '../../../src/ol/layer/Image.js';
|
||||
import TileLayer from '../../../src/ol/layer/Tile.js';
|
||||
import VectorLayer from '../../../src/ol/layer/Vector.js';
|
||||
import IntermediateCanvasRenderer from '../../../src/ol/renderer/canvas/IntermediateCanvas.js';
|
||||
import TileLayerRenderer from '../../../src/ol/renderer/canvas/TileLayer.js';
|
||||
import ImageStatic from '../../../src/ol/source/ImageStatic.js';
|
||||
import VectorSource from '../../../src/ol/source/Vector.js';
|
||||
import XYZ from '../../../src/ol/source/XYZ.js';
|
||||
@@ -325,8 +325,8 @@ describe('ol.Map', function() {
|
||||
|
||||
beforeEach(function(done) {
|
||||
log = [];
|
||||
original = IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate;
|
||||
IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate = function(coordinate) {
|
||||
original = TileLayerRenderer.prototype.forEachLayerAtCoordinate;
|
||||
TileLayerRenderer.prototype.forEachLayerAtCoordinate = function(coordinate) {
|
||||
log.push(coordinate.slice());
|
||||
};
|
||||
|
||||
@@ -364,7 +364,7 @@ describe('ol.Map', function() {
|
||||
});
|
||||
|
||||
afterEach(function() {
|
||||
IntermediateCanvasRenderer.prototype.forEachLayerAtCoordinate = original;
|
||||
TileLayerRenderer.prototype.forEachLayerAtCoordinate = original;
|
||||
map.dispose();
|
||||
document.body.removeChild(target);
|
||||
log = null;
|
||||
|
||||
Reference in New Issue
Block a user