[OpenLayers-Commits] r11856 - trunk/openlayers/tests/Renderer
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Fri Apr 1 17:37:07 EDT 2011
Author: tschaub
Date: 2011-04-01 14:37:06 -0700 (Fri, 01 Apr 2011)
New Revision: 11856
Modified:
trunk/openlayers/tests/Renderer/Canvas.html
Log:
Cleaning up from the canvas tests.
Modified: trunk/openlayers/tests/Renderer/Canvas.html
===================================================================
--- trunk/openlayers/tests/Renderer/Canvas.html 2011-04-01 20:00:06 UTC (rev 11855)
+++ trunk/openlayers/tests/Renderer/Canvas.html 2011-04-01 21:37:06 UTC (rev 11856)
@@ -12,6 +12,7 @@
t.ok(r instanceof OpenLayers.Renderer.Canvas, "new OpenLayers.Renderer.Canvas returns Renderer.Canvas object" );
t.ok(r.container == el, "renderer container is correctly set");
+ r.destroy();
}
function test_Renderer_Canvas_setextent(t) {
@@ -26,6 +27,7 @@
r.setExtent(extent, true);
t.ok(r.extent.equals(extent), "extent is correctly set");
t.eq(r.resolution, null, "resolution nullified");
+ r.destroy();
}
function test_Renderer_Canvas_setsize(t) {
@@ -40,6 +42,7 @@
r.setSize(size);
t.ok(r.size.equals(size), "size is correctly set");
t.eq(r.resolution, null, "resolution nullified");
+ r.destroy();
}
function test_Renderer_Canvas_getresolution(t) {
@@ -54,6 +57,7 @@
var resolution = r.getResolution();
t.eq(resolution, map.getResolution(), "resolution matches the map resolution");
t.eq(r.resolution, resolution, "resolution is correctly set");
+ map.destroy();
}
function test_featureIdToRGB(t) {
@@ -224,6 +228,8 @@
t.eq(feature && feature.id, c.id, c.msg);
}
+ map.destroy();
+
}
</script>
More information about the Commits
mailing list