|
|
|
@ -20,8 +20,8 @@ describe('data/wms-service', function () {
|
|
|
|
|
this.wmsService.setUrl(url);
|
|
|
|
|
var resultURL = this.wmsService.generateURL({ method: 'create' });
|
|
|
|
|
|
|
|
|
|
expect(resultURL.indexOf(encodeURIComponent('FORMAT=image/png24'))).toEqual(1);
|
|
|
|
|
expect(resultURL.indexOf(encodeURIComponent('service=WMS'))).toEqual(1);
|
|
|
|
|
expect((resultURL.match(encodeURIComponent('FORMAT=image/png24')) || []).length).toEqual(1);
|
|
|
|
|
expect((resultURL.match(encodeURIComponent('service=WMS')) || []).length).toEqual(1);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
it('should set the supported matrix sets to create a WMTS resource', function () {
|
|
|
|
|