Make sure we don't generate any floating point DPI values for ol.source.TileArcGISRest

This commit is contained in:
Bart van den Eijnden
2015-06-22 11:58:46 +02:00
parent c6d1778202
commit 9a0c0e2f2b
2 changed files with 9 additions and 1 deletions

View File

@@ -33,6 +33,14 @@ describe('ol.source.TileArcGISRest', function() {
});
it('returns a non floating point DPI value', function() {
var source = new ol.source.TileArcGISRest(options);
var tile = source.getTile(3, 2, -7, 1.12, ol.proj.get('EPSG:3857'));
var uri = new goog.Uri(tile.src_);
var queryData = uri.getQueryData();
expect(queryData.get('DPI')).to.be('101');
});
it('returns a tile with the expected URL with url list', function() {
options.urls = ['http://test1.com/MapServer',