Changeset 5459
- Timestamp:
- 12/17/07 01:11:59 (1 year ago)
- Files:
-
- trunk/openlayers/tests/Layer/test_TMS.html (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/Layer/test_TMS.html
r4792 r5459 34 34 35 35 t.ok( layer.grid != null, "layer.grid does not get nullified" ); 36 map.destroy(); 36 37 } 37 38 … … 66 67 67 68 t.eq( layer.getResolution(), 0.0439453125, "getResolution() returns correct value"); 69 map.destroy(); 68 70 } 69 71 … … 85 87 86 88 t.eq( zoom, 2, "getZoomForExtent() returns correct value"); 89 map.destroy(); 87 90 } 88 91 … … 126 129 tileurl = layer.getURL(new OpenLayers.Bounds(3.515625,45,4.21875,45.703125)); 127 130 t.eq(tileurl, "http://tilecache1/1.0.0/basic/9/261/192.png", "Tile URL is deterministic"); 131 map.destroy(); 128 132 } 129 133 function test_Layer_TMS_Rounding(t) { … … 135 139 m.zoomToMaxExtent() 136 140 t.eq(layer.getURL(layer.grid[3][3].bounds), "http://labs.metacarta.com/wms-c/Basic.py/1.0.0/basic/0/1/1.png", "TMS tiles around rounded properly."); 141 m.destroy(); 137 142 } 138 143 … … 150 155 t.eq(layer.tileOrigin.lat, -90, "lat is -90"); 151 156 t.eq(layer.tileOrigin.lon, -180, "lon is -180"); 157 map.destroy(); 152 158 } 153 159 … … 174 180 175 181 t.ok( layer.grid == null, "tiles appropriately destroyed"); 182 map.destroy(); 176 183 } 177 184
