From cda62f3a0a902b2e58e32f7a15aea93ed31be2fe Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Tue, 20 Aug 2013 18:02:34 +0200 Subject: [PATCH] Check for field names in SimpleField rather than SimpleData Doing so makes the test also succeed with gdal-1.10 See http://trac.osgeo.org/gdal/ticket/5208 --- test/acceptance/export/kml.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/acceptance/export/kml.js b/test/acceptance/export/kml.js index 93772e58..c2d92cc3 100644 --- a/test/acceptance/export/kml.js +++ b/test/acceptance/export/kml.js @@ -46,9 +46,9 @@ test('KML format, unauthenticated', function(done){ var checkfields = {'Name':1, 'address':1, 'cartodb_id':1, 'the_geom':0, 'the_geom_webmercator':0}; for ( var f in checkfields ) { if ( checkfields[f] ) { - assert.ok(row0.indexOf('SimpleData name="'+ f + '"') != -1, "result does not include '" + f + "'"); + assert.ok(row0.indexOf('SimpleField name="'+ f + '"') != -1, "result does not include '" + f + "'"); } else { - assert.ok(row0.indexOf('SimpleData name="'+ f + '"') == -1, "result includes '" + f + "'"); + assert.ok(row0.indexOf('SimpleField name="'+ f + '"') == -1, "result includes '" + f + "'"); } } done(); @@ -103,9 +103,9 @@ test('KML format, skipfields', function(done){ var checkfields = {'Name':1, 'address':0, 'cartodb_id':0, 'the_geom':0, 'the_geom_webmercator':0}; for ( var f in checkfields ) { if ( checkfields[f] ) { - assert.ok(row0.indexOf('SimpleData name="'+ f + '"') != -1, "result does not include '" + f + "'"); + assert.ok(row0.indexOf('SimpleField name="'+ f + '"') != -1, "result does not include '" + f + "'"); } else { - assert.ok(row0.indexOf('SimpleData name="'+ f + '"') == -1, "result includes '" + f + "'"); + assert.ok(row0.indexOf('SimpleField name="'+ f + '"') == -1, "result includes '" + f + "'"); } } done();