Merge pull request #5429 from probins/testenums
Remove enums from tests
This commit is contained in:
@@ -118,7 +118,7 @@ describe('ol.source.TileWMS', function() {
|
||||
});
|
||||
|
||||
it('sets FORMAT_OPTIONS when the server is GeoServer', function() {
|
||||
options.serverType = ol.source.wms.ServerType.GEOSERVER;
|
||||
options.serverType = 'geoserver';
|
||||
var source = new ol.source.TileWMS(options);
|
||||
var tile = source.getTile(3, 2, -3, 2, ol.proj.get('CRS:84'));
|
||||
var uri = new URL(tile.src_);
|
||||
@@ -127,7 +127,7 @@ describe('ol.source.TileWMS', function() {
|
||||
});
|
||||
|
||||
it('extends FORMAT_OPTIONS if it is already present', function() {
|
||||
options.serverType = ol.source.wms.ServerType.GEOSERVER;
|
||||
options.serverType = 'geoserver';
|
||||
var source = new ol.source.TileWMS(options);
|
||||
options.params.FORMAT_OPTIONS = 'param1:value1';
|
||||
var tile = source.getTile(3, 2, -3, 2, ol.proj.get('CRS:84'));
|
||||
@@ -138,7 +138,7 @@ describe('ol.source.TileWMS', function() {
|
||||
|
||||
it('rounds FORMAT_OPTIONS to an integer when the server is GeoServer',
|
||||
function() {
|
||||
options.serverType = ol.source.wms.ServerType.GEOSERVER;
|
||||
options.serverType = 'geoserver';
|
||||
var source = new ol.source.TileWMS(options);
|
||||
var tile = source.getTile(3, 2, -3, 1.325, ol.proj.get('CRS:84'));
|
||||
var uri = new URL(tile.src_);
|
||||
@@ -270,6 +270,5 @@ describe('ol.source.TileWMS', function() {
|
||||
|
||||
goog.require('ol.ImageTile');
|
||||
goog.require('ol.source.TileWMS');
|
||||
goog.require('ol.source.wms.ServerType');
|
||||
goog.require('ol.proj');
|
||||
goog.require('ol.tilegrid.TileGrid');
|
||||
|
||||
Reference in New Issue
Block a user