From 730008cfad5de98ddcb73cface43bd4b672f3972 Mon Sep 17 00:00:00 2001 From: mike-000 <49240900+mike-000@users.noreply.github.com> Date: Sat, 18 Jan 2020 20:00:09 +0000 Subject: [PATCH] Make feature styles compatible with declutter Update expected result to single style object to reflect change Remove duplicated test --- test/spec/ol/format/kml.test.js | 54 +-------------------------------- 1 file changed, 1 insertion(+), 53 deletions(-) diff --git a/test/spec/ol/format/kml.test.js b/test/spec/ol/format/kml.test.js index 3109c68280..926327abdd 100644 --- a/test/spec/ol/format/kml.test.js +++ b/test/spec/ol/format/kml.test.js @@ -2279,59 +2279,7 @@ describe('ol.format.KML', function() { expect(f).to.be.an(Feature); const styleFunction = f.getStyleFunction(); expect(styleFunction).not.to.be(undefined); - const styleArray = styleFunction(f, 0); - expect(styleArray).to.be.an(Array); - expect(styleArray).to.have.length(2); - const style = styleArray[1]; - expect(style).to.be.an(Style); - expect(style.getText().getText()).to.eql(f.getProperties()['name']); - }); - - it('can create text style for named point placemarks', function() { - const text = - '' + - ' ' + - ' ' + - ' ' + - ' normal' + - ' #sn_ylw-pushpin' + - ' ' + - ' ' + - ' highlight' + - ' #sh_ylw-pushpin' + - ' ' + - ' ' + - ' ' + - ' Test' + - ' #msn_ylw-pushpin0' + - ' ' + - ' 1,2' + - ' ' + - ' ' + - ''; - const fs = format.readFeatures(text); - expect(fs).to.have.length(1); - const f = fs[0]; - expect(f).to.be.an(Feature); - const styleFunction = f.getStyleFunction(); - expect(styleFunction).not.to.be(undefined); - const styleArray = styleFunction(f, 0); - expect(styleArray).to.be.an(Array); - expect(styleArray).to.have.length(2); - const style = styleArray[1]; + const style = styleFunction(f, 0); expect(style).to.be.an(Style); expect(style.getText().getText()).to.eql(f.getProperties()['name']); });