Add ol.source.WMTS#getRequestEncoding

This commit is contained in:
Éric Lemoine
2015-04-22 15:11:30 +02:00
parent 2a2fea379e
commit 3a03e9f76a
2 changed files with 44 additions and 1 deletions

View File

@@ -209,6 +209,32 @@ describe('ol.source.WMTS', function() {
});
});
describe('#getRequestEncoding', function() {
var source;
beforeEach(function() {
source = new ol.source.WMTS({
layer: 'layer',
style: 'default',
matrixSet: 'foo',
requestEncoding: 'REST',
tileGrid: new ol.tilegrid.WMTS({
origin: [0, 0],
resolutions: [],
matrixIds: []
})
});
});
it('returns the request encoding', function() {
var requestEncoding = source.getRequestEncoding();
expect(requestEncoding).to.be.eql('REST');
});
});
});
goog.require('ol.format.WMTSCapabilities');