From 98994cad6165d079f0d7d6f9e293d719140a76de Mon Sep 17 00:00:00 2001 From: Olivier Guyot Date: Mon, 25 Mar 2019 11:52:18 +0100 Subject: [PATCH] View / tests now pass without smoothResolutionConstraint: false --- test/spec/ol/view.test.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/test/spec/ol/view.test.js b/test/spec/ol/view.test.js index eb2fb73236..5f4d3e783a 100644 --- a/test/spec/ol/view.test.js +++ b/test/spec/ol/view.test.js @@ -1053,8 +1053,7 @@ describe('ol.View', function() { let view; beforeEach(function() { view = new View({ - resolutions: [1024, 512, 256, 128, 64, 32, 16, 8], - smoothResolutionConstraint: false + resolutions: [1024, 512, 256, 128, 64, 32, 16, 8] }); }); @@ -1086,8 +1085,7 @@ describe('ol.View', function() { it('works for resolution arrays with variable zoom factors', function() { const view = new View({ - resolutions: [10, 5, 2, 1], - smoothResolutionConstraint: false + resolutions: [10, 5, 2, 1] }); view.setZoom(1); @@ -1112,8 +1110,7 @@ describe('ol.View', function() { it('returns correct zoom levels', function() { const view = new View({ minZoom: 10, - maxZoom: 20, - smoothResolutionConstraint: false + maxZoom: 20 }); view.setZoom(5); @@ -1189,9 +1186,7 @@ describe('ol.View', function() { describe('#getResolutionForZoom', function() { it('returns correct zoom resolution', function() { - const view = new View({ - smoothResolutionConstraint: false - }); + const view = new View(); const max = view.getMaxZoom(); const min = view.getMinZoom();