modify all equals() functions in Util.js (Size, Pixel, LonLat, Bounds) such that if a null value is passed in, they return false. Tests updated to make sure this is true.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@608 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
}
|
||||
|
||||
function test_06_LonLat_equals(t) {
|
||||
t.plan( 4 );
|
||||
t.plan( 5 );
|
||||
lonlat = new OpenLayers.LonLat(5,6);
|
||||
|
||||
ll = new OpenLayers.LonLat(5,6);
|
||||
@@ -66,6 +66,9 @@
|
||||
|
||||
ll = new OpenLayers.LonLat(1,2);
|
||||
t.eq( lonlat.equals(ll), false, "(5,6) does not equal (1,2)");
|
||||
|
||||
t.ok( !lonlat.equals(null), "equals() returns false on comparison to null");
|
||||
|
||||
}
|
||||
|
||||
function test_07_LonLat_fromString(t) {
|
||||
|
||||
Reference in New Issue
Block a user