From 31f887a586b344ad6790555d79a193c99c564e14 Mon Sep 17 00:00:00 2001 From: euzuro Date: Thu, 1 Jun 2006 00:14:02 +0000 Subject: [PATCH] adding test for getSize() to OpenLayers.Bounds git-svn-id: http://svn.openlayers.org/trunk/openlayers@484 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Bounds.html | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_Bounds.html b/tests/test_Bounds.html index 7506978457..23656686cb 100644 --- a/tests/test_Bounds.html +++ b/tests/test_Bounds.html @@ -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);