This moves the feature cache from ol.layer.Vector to ol.source.Vector. These are the minimum changes required to maintain the existing functionality and make tests pass. More refactoring to come.
24 lines
466 B
JavaScript
24 lines
466 B
JavaScript
goog.provide('ol.test.layer.Vector');
|
|
|
|
describe('ol.layer.Vector', function() {
|
|
|
|
describe('constructor', function() {
|
|
|
|
it('creates a new layer', function() {
|
|
|
|
var layer = new ol.layer.Vector({
|
|
source: new ol.source.Vector()
|
|
});
|
|
expect(layer).to.be.a(ol.layer.Vector);
|
|
expect(layer).to.be.a(ol.layer.Layer);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
});
|
|
|
|
goog.require('ol.layer.Layer');
|
|
goog.require('ol.layer.Vector');
|
|
goog.require('ol.source.Vector');
|