make sure parameter name lookups are case-insensitive

This commit is contained in:
Bart van den Eijnden
2013-11-19 17:09:02 +01:00
parent ac730dc1f3
commit bb53087541
2 changed files with 9 additions and 9 deletions

View File

@@ -32,8 +32,8 @@ describe('ol.source.wms', function() {
[5, 10], {params: {'INFO_FORMAT': 'text/plain'}},
function(info) {
expect(info).to.eql('<iframe seamless src="' +
'?REQUEST=GetFeatureInfo&VERSION=1.3&LAYERS=foo&QUERY_LAYERS=' +
'foo&INFO_FORMAT=text%2Fplain&I=5&J=10"></iframe>');
'?request=GetFeatureInfo&version=1.3&layers=foo&query_layers=' +
'foo&info_format=text%2Fplain&i=5&j=10"></iframe>');
done();
});
});
@@ -47,12 +47,12 @@ describe('ol.source.wms', function() {
});
it('overrides any existing parameters', function(done) {
ol.source.wms.getFeatureInfo('?REQUEST=GetMap&VERSION=1.3&LAYERS=' +
'foo&STYLES=x',
'foo&styles=x',
[5, 10], {params: {'INFO_FORMAT': 'text/plain', STYLES: 'y'}},
function(info) {
expect(info).to.eql('<iframe seamless src="' +
'?REQUEST=GetFeatureInfo&VERSION=1.3&LAYERS=foo&QUERY_LAYERS=' +
'foo&INFO_FORMAT=text%2Fplain&I=5&J=10&STYLES=y"></iframe>');
'?request=GetFeatureInfo&version=1.3&layers=foo&query_layers=' +
'foo&styles=y&info_format=text%2Fplain&i=5&j=10"></iframe>');
done();
});
});