diff options
| author | Claude Paroz <claude@2xlibre.net> | 2022-12-29 08:30:30 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-12-29 08:30:30 +0100 |
| commit | 1833eb3f3e3bda5052637f1a51a27fa1b11b6871 (patch) | |
| tree | 427a50c5c20d673f902672b3dff5ddad9b146bf4 /js_tests | |
| parent | 279967ec859a9a5240318cf29a077539b0e3139f (diff) | |
Upgraded OpenLayers to v.7.2.2.
Diffstat (limited to 'js_tests')
| -rw-r--r-- | js_tests/gis/mapwidget.test.js | 2 | ||||
| -rw-r--r-- | js_tests/tests.html | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/js_tests/gis/mapwidget.test.js b/js_tests/gis/mapwidget.test.js index 8991738c6c..e0cc617a1e 100644 --- a/js_tests/gis/mapwidget.test.js +++ b/js_tests/gis/mapwidget.test.js @@ -33,7 +33,7 @@ QUnit.test('MapWidget.defaultCenter', function(assert) { '6.81,47.08', 'Default center at 6.81, 47.08' ); - assert.equal(widget.map.getView().getZoom(), 17); + assert.equal(Math.round(widget.map.getView().getZoom()), 17); }); QUnit.test('MapWidget.interactions', function(assert) { diff --git a/js_tests/tests.html b/js_tests/tests.html index 61bc4ac102..c3c1055c9a 100644 --- a/js_tests/tests.html +++ b/js_tests/tests.html @@ -157,7 +157,7 @@ <textarea id="id_multipolygon" name="multipolygon" class="vSerializedField required" style="display:none;" rows="10" cols="150"></textarea> </div> - <script src='https://cdnjs.cloudflare.com/ajax/libs/ol3/4.6.5/ol.js'></script> + <script src='https://cdn.jsdelivr.net/npm/ol@v7.2.2/dist/ol.js'></script> <script src='../django/contrib/gis/static/gis/js/OLMapWidget.js' data-cover></script> <script src='./gis/mapwidget.test.js'></script> |
