fix more tests in Opera by adding map.destroy() calls.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5461 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -41,6 +41,7 @@
|
||||
activated = handler.deactivate();
|
||||
t.ok(activated,
|
||||
"deactivate returns true if the handler was active already");
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_Handler_Polygon_bounds(t) {
|
||||
@@ -66,6 +67,7 @@
|
||||
handler.mousemove(evt);
|
||||
t.ok(!handler.polygon.geometry.getBounds().equals(new OpenLayers.Bounds(0,-35.15625,35.15625,0)),
|
||||
"Correct bounds after dragging without letting go. (Came out as "+handler.line.geometry.getBounds().toBBOX() + ".)");
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
function test_Handler_Polygon_destroy(t) {
|
||||
@@ -98,6 +100,7 @@
|
||||
"handler.line is null after destroy");
|
||||
t.eq(handler.polygon, null,
|
||||
"handler.polygon is null after destroy");
|
||||
map.destroy();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user