Changed constructor for bounds to take minlon, minlat, maxlon, maxlat as its arguments. changed all related usage and comments
git-svn-id: http://svn.openlayers.org/trunk/openlayers@104 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -7,16 +7,16 @@
|
||||
t.plan( 5 );
|
||||
bounds = new OpenLayers.Bounds(1,2,3,4);
|
||||
t.ok( bounds instanceof OpenLayers.Bounds, "new OpenLayers.Bounds returns Bounds object" );
|
||||
t.eq( bounds.minlon, 2, "bounds.minlon is set correctly" );
|
||||
t.eq( bounds.minlat, 1, "bounds.minlat is set correctly" );
|
||||
t.eq( bounds.maxlon, 4, "bounds.maxlon is set correctly" );
|
||||
t.eq( bounds.maxlat, 3, "bounds.maxlat is set correctly" );
|
||||
t.eq( bounds.minlon, 1, "bounds.minlon is set correctly" );
|
||||
t.eq( bounds.minlat, 2, "bounds.minlat is set correctly" );
|
||||
t.eq( bounds.maxlon, 3, "bounds.maxlon is set correctly" );
|
||||
t.eq( bounds.maxlat, 4, "bounds.maxlat is set correctly" );
|
||||
|
||||
}
|
||||
function test_02_Bounds_toBBOX(t) {
|
||||
t.plan( 1 );
|
||||
bounds = new OpenLayers.Bounds(1,2,3,4);
|
||||
t.eq( bounds.toBBOX(), "2,1,4,3", "toBBOX() returns correct value." )
|
||||
t.eq( bounds.toBBOX(), "1,2,3,4", "toBBOX() returns correct value." )
|
||||
}
|
||||
// -->
|
||||
</script>
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
new OpenLayers.Size(5,6));
|
||||
t.ok( tile instanceof OpenLayers.Tile, "new OpenLayers.Tile returns Tile object" );
|
||||
t.ok( tile.bounds instanceof OpenLayers.Bounds, "tile.bounds is a Bounds object" );
|
||||
t.eq( tile.bounds.minlon, 2, "tile.bounds.minlon is set correctly");
|
||||
t.eq( tile.bounds.minlat, 1, "tile.bounds.minlat is set correctly");
|
||||
t.eq( tile.bounds.maxlon, 4, "tile.bounds.maxlon is set correctly");
|
||||
t.eq( tile.bounds.maxlat, 3, "tile.bounds.maxlat is set correctly");
|
||||
t.eq( tile.bounds.minlon, 1, "tile.bounds.minlon is set correctly");
|
||||
t.eq( tile.bounds.minlat, 2, "tile.bounds.minlat is set correctly");
|
||||
t.eq( tile.bounds.maxlon, 3, "tile.bounds.maxlon is set correctly");
|
||||
t.eq( tile.bounds.maxlat, 4, "tile.bounds.maxlat is set correctly");
|
||||
t.ok( tile.size instanceof OpenLayers.Size, "tile.size is a Size object" );
|
||||
t.eq( tile.size.w, 5, "tile.size.w is set correctly");
|
||||
t.eq( tile.size.h, 6, "tile.size.h is set correctly");
|
||||
|
||||
@@ -11,10 +11,10 @@
|
||||
new OpenLayers.Size(5,6));
|
||||
t.ok( tile instanceof OpenLayers.Tile.Image, "new OpenLayers.Tile returns Tile object" );
|
||||
t.ok( tile.bounds instanceof OpenLayers.Bounds, "tile.bounds is a Bounds object" );
|
||||
t.eq( tile.bounds.minlon, 2, "tile.bounds.minlon is set correctly");
|
||||
t.eq( tile.bounds.minlat, 1, "tile.bounds.minlat is set correctly");
|
||||
t.eq( tile.bounds.maxlon, 4, "tile.bounds.maxlon is set correctly");
|
||||
t.eq( tile.bounds.maxlat, 3, "tile.bounds.maxlat is set correctly");
|
||||
t.eq( tile.bounds.minlon, 1, "tile.bounds.minlon is set correctly");
|
||||
t.eq( tile.bounds.minlat, 2, "tile.bounds.minlat is set correctly");
|
||||
t.eq( tile.bounds.maxlon, 3, "tile.bounds.maxlon is set correctly");
|
||||
t.eq( tile.bounds.maxlat, 4, "tile.bounds.maxlat is set correctly");
|
||||
t.ok( tile.size instanceof OpenLayers.Size, "tile.size is a Size object" );
|
||||
t.eq( tile.size.w, 5, "tile.size.w is set correctly");
|
||||
t.eq( tile.size.h, 6, "tile.size.h is set correctly");
|
||||
|
||||
Reference in New Issue
Block a user