From a4ceb41938bdb0978ef19788d287f90a0e87deea Mon Sep 17 00:00:00 2001 From: Bart van den Eijnden Date: Mon, 22 Jul 2013 18:10:47 +0200 Subject: [PATCH] fix up KML tests --- test/spec/ol/parser/kml.test.js | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/spec/ol/parser/kml.test.js b/test/spec/ol/parser/kml.test.js index aabe7bcda8..3193d7eb37 100644 --- a/test/spec/ol/parser/kml.test.js +++ b/test/spec/ol/parser/kml.test.js @@ -52,8 +52,8 @@ 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 - p.read(xml, function(features) { - expect(features.length).to.eql(3); + p.read(xml, function(obj) { + expect(obj.features.length).to.eql(3); done(); }); }); @@ -63,8 +63,8 @@ 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 - p.read(xml, function(features) { - expect(features.length).to.eql(2); + p.read(xml, function(obj) { + expect(obj.features.length).to.eql(2); done(); }); }); @@ -74,9 +74,9 @@ 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 - p.read(xml, function(features) { + p.read(xml, function(obj) { // since maxDepth is 1, we will not get to the second feature - expect(features.length).to.eql(1); + expect(obj.features.length).to.eql(1); done(); }); });