OpenLayers OpenLayers

Changeset 5460

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

fix more tests in opera

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Handler/test_RegularPolygon.html

    r5200 r5460  
    4242        t.ok(activated, 
    4343             "deactivate returns true if the handler was active already"); 
     44        map.destroy();      
    4445    } 
    4546 
     
    5758             "deactivate doesn't throw an error if layer was" + 
    5859             " previously destroyed"); 
     60        map.destroy();      
    5961    } 
    6062 
     
    99101             "34.15625,-22.09375,36.15625,-20.09375", 
    100102             "bounds with manual radius setting and mousemove"); 
     103        map.destroy();      
    101104    } 
    102105 
     
    141144             "34.159333,-8.028167,36.153167,-6.034333", 
    142145             "bounds with manual radius setting and mousemove"); 
     146        map.destroy();      
    143147    } 
    144148 
  • trunk/openlayers/tests/Layer/test_KaMap.html

    r4792 r5460  
    5757        map.setBaseLayer(layer2); 
    5858        t.eq( layer2.grid.length, 6, "Grid rows with buffer:2" ); 
     59        map.destroy(); 
    5960    } 
    6061 
     
    6768        t.eq( layer.grid.length, 8, "KaMap rows is correct." ); 
    6869        t.eq( layer.grid[0].length, 6, "KaMap cols is correct." ); 
     70        map.destroy(); 
    6971         
    7072    } 
     
    8486 
    8587        t.ok( layer.grid != null, "layer.grid does not get nullified" ); 
     88        map.destroy(); 
    8689    } 
    8790 
     
    116119 
    117120        t.eq( layer.getResolution(), 0.0439453125, "getResolution() returns correct value"); 
     121        map.destroy(); 
    118122    } 
    119123 
     
    135139 
    136140        t.eq( zoom, 2, "getZoomForExtent() returns correct value"); 
     141        map.destroy(); 
    137142    }    
    138143     
     
    161166 
    162167        t.eq( layer.params.chickpeas, "image/png", "mergeNewParams() makes clean copy of hashtable"); 
     168        map.destroy(); 
    163169    } 
    164170 
     
    208214 
    209215        layer.grid = null; 
     216        map.destroy(); 
    210217    } 
    211218 
     
    223230        t.ok( layer.tileSize != null, "tileSize has been set"); 
    224231        t.ok( (layer.tileSize.h == 50) && (layer.tileSize.w == 500), "tileSize has been set correctly"); 
     232        map.destroy(); 
    225233    } 
    226234    function test_12_Layer_KaMap_getTileBounds(t) { 
     
    241249        var bounds = layer.getTileBounds(new OpenLayers.Pixel(200,200)); 
    242250        t.eq(bounds.toBBOX(), "0,0,180,180", "get tile bounds returns correct bounds after pan");  
     251        map.destroy(); 
    243252    } 
    244253 
     
    265274 
    266275        t.ok( layer.grid == null, "tiles appropriately destroyed"); 
     276        map.destroy(); 
    267277    } 
    268278