Add useFeedTitle option to georss layer -- defaults to true -- to determine

whether to use the remote title or the local name. (Closes #731)


git-svn-id: http://svn.openlayers.org/trunk/openlayers@4226 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2007-09-12 02:18:33 +00:00
parent 8f402c063f
commit f662d49682
2 changed files with 26 additions and 6 deletions
+9
View File
@@ -28,6 +28,15 @@
t.eq( layer.name, "Crschmidt's Places At Platial", "Layer name is correct." );
} );
}
function test_Layer_GeoRSS_dontUseFeedTitle (t) {
t.plan( 1 );
layer = new OpenLayers.Layer.GeoRSS('Test Layer', georss_txt, {'useFeedTitle': false} );
t.delay_call( 1, function() {
t.eq( layer.name, "Test Layer", "Layer name is correct when not used from feed." );
} );
}
function test_01_Layer_GeoRSS_AtomParsing (t) {
t.plan( 6 );
layer = new OpenLayers.Layer.GeoRSS('Test Layer', atom_xml );