diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index 448aca8d19..6aa59e586b 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -29,6 +29,16 @@ var pos = tile.getPosition(); t.eq( pos.toString(), "x=5,y=6", "Position of tile is set correctly." ); } + function test_03_Layer_WMS_inittiles (t) { + t.plan( 2 ); + var map = new OpenLayers.Map($('map')); + layer = new OpenLayers.Layer.WMS('Test Layer', "http://octo.metacarta.com/cgi-bin/mapserv", {map: '/mapdata/vmap_wms.map', layers: 'basic', format: 'image/jpeg'}); + map.addLayer(layer); + map.setCenter(new OpenLayers.LonLat(0,0),5); + t.eq( layer.grid.length, 4, "Grid rows is correct." ); + t.eq( layer.grid[0].length, 2, "Grid cols is correct." ); + + } function test_99_Layer_WMS_destroy (t) { t.plan( 1 ); @@ -40,5 +50,6 @@ +