Files
openlayers/test/spec/ol/layer/vectorlayer.test.js
Tim Schaub 2000b0af78 Vector layer/source refactor
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.
2013-11-27 12:20:42 -07:00

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');