Changeset 119
- Timestamp:
- 05/17/06 23:23:17 (3 years ago)
- Files:
-
- trunk/openlayers/tests/test_Layer_WMS.html (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/openlayers/tests/test_Layer_WMS.html
r112 r119 30 30 t.eq( pos.toString(), "x=5,y=6", "Position of tile is set correctly." ); 31 31 } 32 function test_03_Layer_WMS_inittiles (t) { 33 t.plan( 2 ); 34 var map = new OpenLayers.Map($('map')); 35 layer = new OpenLayers.Layer.WMS('Test Layer', "http://octo.metacarta.com/cgi-bin/mapserv", {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'}); 36 map.addLayer(layer); 37 map.setCenter(new OpenLayers.LonLat(0,0),5); 38 t.eq( layer.grid.length, 4, "Grid rows is correct." ); 39 t.eq( layer.grid[0].length, 2, "Grid cols is correct." ); 40 41 } 32 42 33 43 function test_99_Layer_WMS_destroy (t) { … … 41 51 </head> 42 52 <body> 53 <div id="map" style="width:500px;height:550px"></div> 43 54 </body> 44 55 </html>
