Add rendering test for layer 2 tiles extent clipping

This commit is contained in:
Florent gravin
2018-11-14 15:39:22 +01:00
parent 081c677ea2
commit ebbb54456a
3 changed files with 45 additions and 8 deletions

View File

@@ -103,14 +103,6 @@ describe('ol.rendering.layer.Tile', function() {
return [c[0] + qw, c[1] + qh, c[2] - qw, c[3] - qh];
}
it('tests canvas layer extent clipping', function(done) {
createMap('canvas');
waitForTiles('canvas', [source1, source2], [{}, {extent: centerExtent(map)}], function() {
expectResemble(map, 'rendering/ol/layer/expected/2-layers-canvas-extent.png',
IMAGE_TOLERANCE, done);
});
});
it('tests canvas layer extent clipping with rotation', function(done) {
createMap('canvas');
map.getView().setRotation(Math.PI / 2);