[Commits] r854 - core/trunk/geoext/tests/lib/GeoExt/widgets
commits at geoext.org
commits at geoext.org
Fri May 22 22:34:57 CEST 2009
Author: tschaub
Date: 2009-05-22 22:34:57 +0200 (Fri, 22 May 2009)
New Revision: 854
Modified:
core/trunk/geoext/tests/lib/GeoExt/widgets/MapPanel.html
Log:
minor tests cleanup in an effort to determine what is up with #39
Modified: core/trunk/geoext/tests/lib/GeoExt/widgets/MapPanel.html
===================================================================
--- core/trunk/geoext/tests/lib/GeoExt/widgets/MapPanel.html 2009-05-22 20:33:48 UTC (rev 853)
+++ core/trunk/geoext/tests/lib/GeoExt/widgets/MapPanel.html 2009-05-22 20:34:57 UTC (rev 854)
@@ -15,10 +15,12 @@
return map;
}
- function loadMapPanel() {
- var map = createMap();
+ function test_mappanel(t) {
+ t.plan(3)
- mapPanel = new GeoExt.MapPanel({
+ var map = createMap();
+
+ var mapPanel = new GeoExt.MapPanel({
// panel options
id: "map-panel",
title: "GeoExt MapPanel",
@@ -30,17 +32,10 @@
center: new OpenLayers.LonLat(5, 45),
zoom: 4
});
-
- return mapPanel;
- }
-
- function test_mappanel(t) {
- t.plan(3)
-
- loadMapPanel();
t.eq(mapPanel.map.getCenter().toString(), "lon=5,lat=45", "Map center set correctly");
t.eq(mapPanel.map.getZoom(), 4, "Zoom set correctly");
t.eq(GeoExt.MapPanel.guess().id, mapPanel.id, "MapPanel guessed correctly");
+ mapPanel.destroy();
}
function test_allOverlays(t) {
More information about the Commits
mailing list