OpenLayers OpenLayers

Changeset 5461

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

fix more tests in Opera by adding map.destroy() calls.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/openlayers/tests/Control/test_MousePosition.html

    r5384 r5461  
    2323         
    2424        t.eq(map.events.listeners.mousemove.length, listeners - 1, "mousemove event is unregistered"); 
     25        map.destroy();      
    2526    } 
    2627 
     
    3637        t.eq(parseInt(control.div.style.zIndex), map.Z_INDEX_BASE['Control'] + 5, "Control div zIndexed properly" ); 
    3738        t.eq(parseInt(map.viewPortDiv.lastChild.style.zIndex), map.Z_INDEX_BASE['Control'] + 5, "Viewport div contains control div"); 
     39        map.destroy();      
    3840    } 
    3941 
     
    5355        control.redraw({'xy': new OpenLayers.Pixel(12,12)}); 
    5456        t.eq(control.div.innerHTML, "-175.78125, 85.78125", "innerHTML set correctly when triggered."); 
     57        map.destroy();      
    5558    } 
    5659 
  • trunk/openlayers/tests/Handler/test_Path.html

    r4063 r5461  
    4242        t.ok(activated, 
    4343             "deactivate returns true if the handler was active already"); 
     44        map.destroy();      
    4445    } 
    4546 
     
    6566        handler.mousemove(evt); 
    6667        t.ok(!handler.line.geometry.getBounds().equals(new OpenLayers.Bounds(0,-35.15625,35.15625,0)), "Correct bounds after dragging without letting go. (Came out as "+handler.line.geometry.getBounds().toBBOX() + ".)");  
     68        map.destroy();      
    6769    }      
    6870         
     
    9395        t.eq(handler.line, null, 
    9496             "handler.line is null after destroy"); 
     97        map.destroy();      
    9598    } 
    9699     
  • trunk/openlayers/tests/Handler/test_Polygon.html

    r4217 r5461  
    4242        t.ok(activated, 
    4343             "deactivate returns true if the handler was active already"); 
     44        map.destroy();      
    4445    } 
    4546 
     
    6768        t.ok(!handler.polygon.geometry.getBounds().equals(new OpenLayers.Bounds(0,-35.15625,35.15625,0)), 
    6869             "Correct bounds after dragging without letting go. (Came out as "+handler.line.geometry.getBounds().toBBOX() + ".)"); 
     70        map.destroy();      
    6971    } 
    7072 
     
    99101        t.eq(handler.polygon, null, 
    100102             "handler.polygon is null after destroy"); 
     103        map.destroy();      
    101104    } 
    102105 
  • trunk/openlayers/tests/Layer/test_WFS.html

    r4059 r5461  
    2727        layer.onMapResize(); 
    2828        t.eq(setSize, true, "Renderer resize called on map size change."); 
     29        map.destroy();      
    2930 
    3031    } 
     
    6465        }   
    6566        t.eq(layer.tile.url, "http://www.bsc-eoc.org/cgi-bin/bsc_ows.asp?typename=OWLS&maxfeatures=10&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A4326&BBOX=-187.890625%2C-36.679687%2C-12.109375%2C156.679688", "Tile URL is set correctly when not encoded"); 
     67        map.destroy();      
    6668    } 
    6769