fix tests that do double-test to check lonlat or xy or wh instead of using the equals() functions
git-svn-id: http://svn.openlayers.org/trunk/openlayers@1139 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -6,15 +6,15 @@
|
||||
var layer;
|
||||
|
||||
function test_01_Layer_GeoRSS_constructor (t) {
|
||||
t.plan( 6 );
|
||||
t.plan( 5 );
|
||||
layer = new OpenLayers.Layer.GeoRSS('Test Layer', "./georss.txt" );
|
||||
t.ok( layer instanceof OpenLayers.Layer.GeoRSS, "new OpenLayers.Layer.GeoRSS returns object" );
|
||||
t.eq( layer.location, "./georss.txt", "layer.location is correct" );
|
||||
var markers;
|
||||
t.delay_call( 1, function() {
|
||||
t.eq( layer.markers.length, 40, "marker length is correct" );
|
||||
t.eq( layer.markers[0].lonlat.lat, 42.405696, "latitude on first marker is correct" );
|
||||
t.eq( layer.markers[0].lonlat.lon, -71.142197, "latitude on first marker is correct" );
|
||||
var ll = new OpenLayers.LonLat(-71.142197, 42.405696);
|
||||
t.ok( layer.markers[0].lonlat.equals(ll), "lonlat on first marker is correct" );
|
||||
t.eq( layer.name, "Crschmidt's Places At Platial", "Layer name is correct." );
|
||||
} );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user