OpenLayers OpenLayers

Changeset 5459

Show
Ignore:
Timestamp:
12/17/07 01:11:59 (1 year ago)
Author:
crschmidt
Message:

Fix tests in opera by cleaning up after ourselves and destroying our maps. TMS
tests now pass.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Layer/test_TMS.html

    r4792 r5459  
    3434 
    3535        t.ok( layer.grid != null, "layer.grid does not get nullified" ); 
     36        map.destroy(); 
    3637    } 
    3738 
     
    6667 
    6768        t.eq( layer.getResolution(), 0.0439453125, "getResolution() returns correct value"); 
     69        map.destroy(); 
    6870    } 
    6971 
     
    8587 
    8688        t.eq( zoom, 2, "getZoomForExtent() returns correct value"); 
     89        map.destroy(); 
    8790    }    
    8891 
     
    126129        tileurl = layer.getURL(new OpenLayers.Bounds(3.515625,45,4.21875,45.703125)); 
    127130        t.eq(tileurl, "http://tilecache1/1.0.0/basic/9/261/192.png", "Tile URL is deterministic"); 
     131        map.destroy(); 
    128132    } 
    129133    function test_Layer_TMS_Rounding(t) { 
     
    135139            m.zoomToMaxExtent() 
    136140            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(); 
    137142    }         
    138143             
     
    150155        t.eq(layer.tileOrigin.lat, -90, "lat is -90"); 
    151156        t.eq(layer.tileOrigin.lon, -180, "lon is -180"); 
     157        map.destroy(); 
    152158    } 
    153159 
     
    174180 
    175181        t.ok( layer.grid == null, "tiles appropriately destroyed"); 
     182        map.destroy(); 
    176183    } 
    177184