Rename _ol_source_Vector_ to VectorSource
This commit is contained in:
@@ -5,7 +5,7 @@ import Polygon from '../../../../src/ol/geom/Polygon.js';
|
||||
import {get as getProjection} from '../../../../src/ol/proj.js';
|
||||
import _ol_source_Cluster_ from '../../../../src/ol/source/Cluster.js';
|
||||
import Source from '../../../../src/ol/source/Source.js';
|
||||
import _ol_source_Vector_ from '../../../../src/ol/source/Vector.js';
|
||||
import VectorSource from '../../../../src/ol/source/Vector.js';
|
||||
|
||||
describe('ol.source.Cluster', function() {
|
||||
|
||||
@@ -13,7 +13,7 @@ describe('ol.source.Cluster', function() {
|
||||
it('returns a cluster source', function() {
|
||||
var source = new _ol_source_Cluster_({
|
||||
projection: getProjection('EPSG:4326'),
|
||||
source: new _ol_source_Vector_()
|
||||
source: new VectorSource()
|
||||
});
|
||||
expect(source).to.be.a(Source);
|
||||
expect(source).to.be.a(_ol_source_Cluster_);
|
||||
@@ -26,7 +26,7 @@ describe('ol.source.Cluster', function() {
|
||||
var projection = getProjection('EPSG:3857');
|
||||
it('clusters a source with point features', function() {
|
||||
var source = new _ol_source_Cluster_({
|
||||
source: new _ol_source_Vector_({
|
||||
source: new VectorSource({
|
||||
features: [
|
||||
new Feature(new Point([0, 0])),
|
||||
new Feature(new Point([0, 0]))
|
||||
@@ -48,7 +48,7 @@ describe('ol.source.Cluster', function() {
|
||||
}
|
||||
return null;
|
||||
},
|
||||
source: new _ol_source_Vector_({
|
||||
source: new VectorSource({
|
||||
features: [
|
||||
new Feature(new Point([0, 0])),
|
||||
new Feature(new LineString([[0, 0], [1, 1]])),
|
||||
@@ -67,7 +67,7 @@ describe('ol.source.Cluster', function() {
|
||||
it('changes the distance value', function() {
|
||||
var source = new _ol_source_Cluster_({
|
||||
distance: 100,
|
||||
source: new _ol_source_Vector_()
|
||||
source: new VectorSource()
|
||||
});
|
||||
expect(source.getDistance()).to.be(100);
|
||||
source.setDistance(10);
|
||||
|
||||
Reference in New Issue
Block a user