Fix DragZoom tests
This commit is contained in:
@@ -75,7 +75,7 @@ describe('ol.interaction.DragZoom', function() {
|
|||||||
box.geometry_ = polygonFromExtent(extent);
|
box.geometry_ = polygonFromExtent(extent);
|
||||||
interaction.box_ = box;
|
interaction.box_ = box;
|
||||||
|
|
||||||
interaction.onBoxEnd();
|
interaction.onBoxEnd_();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
const view = map.getView();
|
const view = map.getView();
|
||||||
const center = view.getCenter();
|
const center = view.getCenter();
|
||||||
@@ -99,7 +99,7 @@ describe('ol.interaction.DragZoom', function() {
|
|||||||
|
|
||||||
map.getView().setResolution(0.25);
|
map.getView().setResolution(0.25);
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
interaction.onBoxEnd();
|
interaction.onBoxEnd_();
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
const view = map.getView();
|
const view = map.getView();
|
||||||
const resolution = view.getResolution();
|
const resolution = view.getResolution();
|
||||||
|
|||||||
Reference in New Issue
Block a user