From 515de90b072b7088874c0813454d4483680bf9da Mon Sep 17 00:00:00 2001 From: Josh Bernstein Date: Thu, 14 Sep 2017 21:35:59 +0000 Subject: [PATCH] Add unit test for icon tag with no image #5819 --- Specs/DataSources/KmlDataSourceSpec.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Specs/DataSources/KmlDataSourceSpec.js b/Specs/DataSources/KmlDataSourceSpec.js index 985284667945..e80fbf62d14b 100644 --- a/Specs/DataSources/KmlDataSourceSpec.js +++ b/Specs/DataSources/KmlDataSourceSpec.js @@ -263,6 +263,18 @@ defineSuite([ }); }); + it('if load contains tag with no image included, no image is added', function() { + var dataSource = new KmlDataSource(options); + return loadBlob('Data/KML/simpleNoIcon.kml').then(function(blob) { + return dataSource.load(blob); + }).then(function(source) { + expect(source.entities); + expect(source.entities.values.length).toEqual(1); + expect(source.entities._entities._array.length).toEqual(1); + expect(!source.entities._entities._array[0]._billboard._image); + }); + }); + it('sets DataSource name from Document', function() { var kml = '\ \