From 7eedf899012c4f1c08e3c8cb9f3153f872acf7f5 Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Wed, 4 Sep 2013 12:56:48 +0200 Subject: [PATCH] Also threat "description" as a special tag (in test) --- test/acceptance/export/kml.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/acceptance/export/kml.js b/test/acceptance/export/kml.js index 6cc5335f..0394c185 100644 --- a/test/acceptance/export/kml.js +++ b/test/acceptance/export/kml.js @@ -32,8 +32,8 @@ var checkDecimals = function(x, dec_sep){ // Check if an attribute is in the KML output // -// NOTE: "name" attribute is threated specially in that -// it's matched in case-insensitive way +// NOTE: "name" and "description" attributes are threated specially +// in that they are matched in case-insensitive way // var hasAttribute = function(kml, att) { @@ -52,7 +52,7 @@ var hasAttribute = function(kml, att) { if ( doc.get(xpath) ) return true; var lcatt = att.toLowerCase(); - if ( lcatt == 'name' ) { + if ( lcatt == 'name' || lcatt == 'description' ) { xpath = "//Placemark/" + lcatt; if ( doc.get(xpath) ) return true; }