fix for #549 - clearing out of map div on map.destroy(). this fixes many opera tests

git-svn-id: http://svn.openlayers.org/trunk/openlayers@2836 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2007-03-21 19:03:09 +00:00
parent 4bd131c882
commit 7425a06550
5 changed files with 21 additions and 6 deletions
+3 -1
View File
@@ -42,7 +42,7 @@
mlayer.addMarker(marker2);
t.ok( !marker2.onScreen(), "marker knows it's offscreen" );
map.destroy();
}
function test_03_Marker_setOpacity(t) {
@@ -70,6 +70,7 @@
marker.setOpacity(0.5);
t.eq(parseFloat(marker.icon.imageDiv.style.opacity), 0.5, "marker.setOpacity() works");
map.destroy();
}
function test_04_Marker_moveTo(t) {
t.plan( 6 );
@@ -101,6 +102,7 @@
marker.moveTo(new OpenLayers.Pixel(0,0));
t.eq(marker.lonlat.lon, map.getExtent().left, "on left edge of map");
t.eq(marker.lonlat.lat, map.getExtent().top, "on top edge of map");
map.destroy();
}