Changeset 5460
- Timestamp:
- 12/17/07 01:14:00 (1 year ago)
- Files:
-
- trunk/openlayers/tests/Handler/test_RegularPolygon.html (modified) (4 diffs)
- trunk/openlayers/tests/Layer/test_KaMap.html (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/Handler/test_RegularPolygon.html
r5200 r5460 42 42 t.ok(activated, 43 43 "deactivate returns true if the handler was active already"); 44 map.destroy(); 44 45 } 45 46 … … 57 58 "deactivate doesn't throw an error if layer was" + 58 59 " previously destroyed"); 60 map.destroy(); 59 61 } 60 62 … … 99 101 "34.15625,-22.09375,36.15625,-20.09375", 100 102 "bounds with manual radius setting and mousemove"); 103 map.destroy(); 101 104 } 102 105 … … 141 144 "34.159333,-8.028167,36.153167,-6.034333", 142 145 "bounds with manual radius setting and mousemove"); 146 map.destroy(); 143 147 } 144 148 trunk/openlayers/tests/Layer/test_KaMap.html
r4792 r5460 57 57 map.setBaseLayer(layer2); 58 58 t.eq( layer2.grid.length, 6, "Grid rows with buffer:2" ); 59 map.destroy(); 59 60 } 60 61 … … 67 68 t.eq( layer.grid.length, 8, "KaMap rows is correct." ); 68 69 t.eq( layer.grid[0].length, 6, "KaMap cols is correct." ); 70 map.destroy(); 69 71 70 72 } … … 84 86 85 87 t.ok( layer.grid != null, "layer.grid does not get nullified" ); 88 map.destroy(); 86 89 } 87 90 … … 116 119 117 120 t.eq( layer.getResolution(), 0.0439453125, "getResolution() returns correct value"); 121 map.destroy(); 118 122 } 119 123 … … 135 139 136 140 t.eq( zoom, 2, "getZoomForExtent() returns correct value"); 141 map.destroy(); 137 142 } 138 143 … … 161 166 162 167 t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hashtable"); 168 map.destroy(); 163 169 } 164 170 … … 208 214 209 215 layer.grid = null; 216 map.destroy(); 210 217 } 211 218 … … 223 230 t.ok( layer.tileSize != null, "tileSize has been set"); 224 231 t.ok( (layer.tileSize.h == 50) && (layer.tileSize.w == 500), "tileSize has been set correctly"); 232 map.destroy(); 225 233 } 226 234 function test_12_Layer_KaMap_getTileBounds(t) { … … 241 249 var bounds = layer.getTileBounds(new OpenLayers.Pixel(200,200)); 242 250 t.eq(bounds.toBBOX(), "0,0,180,180", "get tile bounds returns correct bounds after pan"); 251 map.destroy(); 243 252 } 244 253 … … 265 274 266 275 t.ok( layer.grid == null, "tiles appropriately destroyed"); 276 map.destroy(); 267 277 } 268 278
