adding test for getSize() to OpenLayers.Bounds

git-svn-id: http://svn.openlayers.org/trunk/openlayers@484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-06-01 00:14:02 +00:00
parent dc2e71a1e4
commit 31f887a586

View File

@@ -68,6 +68,13 @@
}
function test_06_Bounds_getSize(t) {
t.plan( 1 );
var bounds = new OpenLayers.Bounds(0,10,100,120);
t.ok( bounds.getSize().equals(new OpenLayers.Size(100, 110)), "getCenterPixel() works correctly");
}
function test_07_Bounds_copyOf(t) {
t.plan( 6 );
var oldBounds = new OpenLayers.Bounds(1,2,3,4);