Add CartoDB tile source.
This commit is contained in:
18
test/spec/ol/source/cartodbsource.test.js
Normal file
18
test/spec/ol/source/cartodbsource.test.js
Normal file
@@ -0,0 +1,18 @@
|
||||
goog.provide('ol.test.source.CartoDBSource');
|
||||
|
||||
goog.require('ol.source.CartoDB');
|
||||
goog.require('ol.source.XYZ');
|
||||
|
||||
describe('ol.source.CartoDB', function() {
|
||||
|
||||
describe('constructor', function() {
|
||||
it('returns a CartoDB source', function() {
|
||||
var source = new ol.source.CartoDB({
|
||||
map: 'example',
|
||||
config: {}
|
||||
});
|
||||
expect(source).to.be.a(ol.source.XYZ);
|
||||
expect(source).to.be.a(ol.source.CartoDB);
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user