Changeset 5457
- Timestamp:
- 12/17/07 06:03:59 (1 year ago)
- Files:
-
- trunk/openlayers/tests/Layer/test_MapServer.html (modified) (16 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/Layer/test_MapServer.html
r4761 r5457 2 2 <head> 3 3 <script type="text/javascript">var oldAlert = window.alert, gMess; window.alert = function(message) {gMess = message; return true;};</script> 4 <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script> Z4 <script src='http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAjpkAC9ePGem0lIq5XcMiuhR_wWLPFku8Ix9i2SXYRVK3e45q1BQUd_beF8dtzKET_EteAjPdGDwqpQ'></script> 5 5 <script type="text/javascript">window.alert = oldAlert;</script> 6 6 … … 69 69 "div first child is correct image object" ); 70 70 t.eq( tile.position.toString(), "x=5,y=6", "Position of tile is set correctly." ); 71 map.destroy(); 71 72 } 72 73 … … 79 80 t.eq( layer.grid.length, 7, "Grid rows is correct." ); 80 81 t.eq( layer.grid[0].length, 6, "Grid cols is correct." ); 82 map.destroy(); 81 83 82 84 } … … 108 110 109 111 layer.grid = null; 112 map.destroy(); 110 113 } 111 114 … … 150 153 151 154 t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hashtable"); 155 map.destroy(); 152 156 } 153 157 … … 174 178 175 179 t.eq(str, sStr , "getFullRequestString() works"); 180 map.destroy(); 176 181 177 182 } … … 198 203 tile.draw(); 199 204 t.eq(parseFloat(tile.imgDiv.style.opacity), 0.6, "Tile opacity is set correctly"); 205 map.destroy(); 200 206 201 207 } … … 220 226 t.eq( tile.bounds.bottom.toFixed(6), '11.178402', "bottom side matches" ); 221 227 t.eq( tile.bounds.top.toFixed(6), '21.943046', "top side matches" ); 228 map.destroy(); 222 229 } else { 223 230 t.plan(1); … … 232 239 var tile = layer.grid[0][0]; 233 240 t.ok( tile.bounds.equals(new OpenLayers.Bounds(-33.75, 33.75, -22.5, 45)), "okay"); 241 map.destroy(); 234 242 } 235 243 … … 245 253 t.eq( layer.tileSize.w, 750, "Image width is correct" ); 246 254 t.eq( layer.tileSize.h, 825, "Image height is correct" ); 255 map.destroy(); 247 256 } 248 257 … … 267 276 268 277 t.ok( layer.grid == null, "grid set to null"); 278 map.destroy(); 269 279 } 270 280 … … 313 323 314 324 layer.tile = null; 325 map.destroy(); 315 326 } 316 327 … … 354 365 355 366 t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hashtable"); 367 map.destroy(); 356 368 } 357 369 … … 378 390 379 391 t.eq(str, sStr , "getFullRequestString() works"); 392 map.destroy(); 380 393 381 394 } … … 398 411 t.eq(tLayer.opacity, "0.6", "setOpacity works properly"); 399 412 t.eq(parseFloat(tLayer.div.firstChild.firstChild.style.opacity), 0.6, "Opacity on tile is changed correctly"); 413 map.destroy(); 400 414 401 415 } … … 430 444 431 445 t.ok( layer.tile == null, "tile set to null"); 446 map.destroy(); 432 447 } 433 448
