Changeset 14516 in josm for trunk/test/unit/org


Ignore:
Timestamp:
2018-12-05T23:29:23+01:00 (6 years ago)
Author:
Don-vip
Message:

see #16073 - ignore check when max-zoom not defined (344 entries)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/unit/org/openstreetmap/josm/gui/preferences/imagery/ImageryPreferenceTestIT.java

    r14515 r14516  
    125125            checkTileUrl(info, tileSource, center, info.getMinZoom());
    126126            // checking max zoom for real is complex, see https://josm.openstreetmap.de/ticket/16073#comment:27
    127             checkTileUrl(info, tileSource, center, Utils.clamp(12, info.getMinZoom() + 1, info.getMaxZoom()));
     127            if (info.getMaxZoom() > 0) {
     128                checkTileUrl(info, tileSource, center, Utils.clamp(12, info.getMinZoom() + 1, info.getMaxZoom()));
     129            }
    128130        } catch (IOException | WMTSGetCapabilitiesException | IllegalArgumentException e) {
    129131            addError(info, e.toString());
Note: See TracChangeset for help on using the changeset viewer.