Private source methods

This commit is contained in:
Tim Schaub
2013-11-15 13:37:06 -07:00
parent 2000b0af78
commit 01a0b9ff8d
2 changed files with 10 additions and 8 deletions

View File

@@ -121,13 +121,13 @@ describe('ol.source.Vector', function() {
});
describe('#prepareFeatures', function() {
describe('#prepareFeatures_', function() {
it('loads and parses data from a file', function(done) {
var source = new ol.source.Vector({
url: 'spec/ol/parser/geojson/countries.geojson',
parser: new ol.parser.GeoJSON()
});
source.prepareFeatures([-180, -90, 180, 90],
source.prepareFeatures_([-180, -90, 180, 90],
ol.proj.get('EPSG:4326'),
function() {
expect(source.loadState_).to.be(ol.source.VectorLoadState.LOADED);
@@ -170,7 +170,7 @@ describe('ol.source.Vector', function() {
parser: new ol.parser.GeoJSON(),
projection: ol.proj.get('EPSG:4326')
});
source.prepareFeatures([-180, -90, 180, 90],
source.prepareFeatures_([-180, -90, 180, 90],
ol.proj.get('EPSG:4326'),
function() {
expect(source.loadState_).to.be(ol.source.VectorLoadState.LOADED);