OpenLayers OpenLayers

Changeset 1196

Show
Ignore:
Timestamp:
08/12/06 11:35:52 (2 years ago)
Author:
euzuro
Message:

fix test to access position directly -- so we can eliminate the extraneous getPosition() handler

Files:

Legend:

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

    r1183 r1196  
    5757            t.ok( firstChild instanceof HTMLElement, "div first child is an image object" ); 
    5858        t.eq( firstChild.src, "http://octo.metacarta.com/cgi-bin/mapserv?MAP=/mapdata/vmap_wms.map&LAYERS=basic&FORMAT=image/png&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326&BBOX=1,2,3,4&WIDTH=256&HEIGHT=256", "div first child is correct image object" ); 
    59         var pos = tile.getPosition(); 
    60         t.eq( pos.toString(), "x=5,y=6", "Position of tile is set correctly." ); 
     59        t.eq( tile.position.toString(), "x=5,y=6", "Position of tile is set correctly." ); 
    6160    } 
    6261