Remove unused variables in parsers
This commit is contained in:
@@ -49,7 +49,7 @@ describe('ol.parser.kml', function() {
|
||||
afterLoadXml(url, function(xml) {
|
||||
var p = new ol.parser.KML({maxDepth: 1});
|
||||
// we need to supply a callback to get visited NetworkLinks
|
||||
var obj = p.read(xml, function(features) {
|
||||
p.read(xml, function(features) {
|
||||
expect(features.length).to.eql(3);
|
||||
done();
|
||||
});
|
||||
@@ -60,7 +60,7 @@ describe('ol.parser.kml', function() {
|
||||
afterLoadXml(url, function(xml) {
|
||||
var p = new ol.parser.KML({maxDepth: 2});
|
||||
// we need to supply a callback to get visited NetworkLinks
|
||||
var obj = p.read(xml, function(features) {
|
||||
p.read(xml, function(features) {
|
||||
expect(features.length).to.eql(2);
|
||||
done();
|
||||
});
|
||||
@@ -71,7 +71,7 @@ describe('ol.parser.kml', function() {
|
||||
afterLoadXml(url, function(xml) {
|
||||
var p = new ol.parser.KML({maxDepth: 1});
|
||||
// we need to supply a callback to get visited NetworkLinks
|
||||
var obj = p.read(xml, function(features) {
|
||||
p.read(xml, function(features) {
|
||||
// since maxDepth is 1, we will not get to the second feature
|
||||
expect(features.length).to.eql(1);
|
||||
done();
|
||||
|
||||
@@ -298,7 +298,7 @@ describe('ol.parser.gml_v2', function() {
|
||||
it('Test boundedBy', function() {
|
||||
var url = 'spec/ol/parser/ogc/xml/gml_v2/boundedBy.xml';
|
||||
afterLoadXml(url, function(xml) {
|
||||
var obj = parser.read(xml);
|
||||
parser.read(xml);
|
||||
// TODO test bounds on feature
|
||||
// see https://github.com/openlayers/ol3/issues/566
|
||||
});
|
||||
|
||||
@@ -308,8 +308,7 @@ describe('ol.parser.gml_v3', function() {
|
||||
it('Read autoConfig', function() {
|
||||
var url = 'spec/ol/parser/ogc/xml/gml_v3/topp-states-wfs.xml';
|
||||
afterLoadXml(url, function(xml) {
|
||||
var obj = parser.read(xml);
|
||||
var features = obj.features;
|
||||
parser.read(xml);
|
||||
expect(parser.featureType).to.eql('states');
|
||||
expect(parser.featureNS).to.eql('http://www.openplans.org/topp');
|
||||
expect(parser.autoConfig === true).to.be.ok();
|
||||
|
||||
@@ -2,9 +2,6 @@ goog.provide('ol.test.parser.ogc.Versioned');
|
||||
|
||||
describe('ol.parser.ogc.versioned', function() {
|
||||
|
||||
var snippet = '<foo version="2.0.0"></foo>';
|
||||
var snippet2 = '<foo></foo>';
|
||||
|
||||
describe('test constructor', function() {
|
||||
var parser = new ol.parser.ogc.Versioned({version: '1.0.0'});
|
||||
it('new OpenLayers.Format.XML.VersionedOGC returns object', function() {
|
||||
|
||||
Reference in New Issue
Block a user