View / tests now pass without smoothResolutionConstraint: false

This commit is contained in:
Olivier Guyot
2019-03-25 11:52:18 +01:00
parent 91dda5e5ca
commit 98994cad61
+4 -9
View File
@@ -1053,8 +1053,7 @@ describe('ol.View', function() {
let view; let view;
beforeEach(function() { beforeEach(function() {
view = new View({ view = new View({
resolutions: [1024, 512, 256, 128, 64, 32, 16, 8], resolutions: [1024, 512, 256, 128, 64, 32, 16, 8]
smoothResolutionConstraint: false
}); });
}); });
@@ -1086,8 +1085,7 @@ describe('ol.View', function() {
it('works for resolution arrays with variable zoom factors', function() { it('works for resolution arrays with variable zoom factors', function() {
const view = new View({ const view = new View({
resolutions: [10, 5, 2, 1], resolutions: [10, 5, 2, 1]
smoothResolutionConstraint: false
}); });
view.setZoom(1); view.setZoom(1);
@@ -1112,8 +1110,7 @@ describe('ol.View', function() {
it('returns correct zoom levels', function() { it('returns correct zoom levels', function() {
const view = new View({ const view = new View({
minZoom: 10, minZoom: 10,
maxZoom: 20, maxZoom: 20
smoothResolutionConstraint: false
}); });
view.setZoom(5); view.setZoom(5);
@@ -1189,9 +1186,7 @@ describe('ol.View', function() {
describe('#getResolutionForZoom', function() { describe('#getResolutionForZoom', function() {
it('returns correct zoom resolution', function() { it('returns correct zoom resolution', function() {
const view = new View({ const view = new View();
smoothResolutionConstraint: false
});
const max = view.getMaxZoom(); const max = view.getMaxZoom();
const min = view.getMinZoom(); const min = view.getMinZoom();