From c7ea21480de118daf6350ba9af99aeb5b5a0a0ca Mon Sep 17 00:00:00 2001 From: euzuro Date: Mon, 5 Jun 2006 15:36:59 +0000 Subject: [PATCH] fix tests to comply with new tile-appends-itself paradigm git-svn-id: http://svn.openlayers.org/trunk/openlayers@512 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Layer_WMS.html | 1 + tests/test_Tile_Image.html | 1 + 2 files changed, 2 insertions(+) diff --git a/tests/test_Layer_WMS.html b/tests/test_Layer_WMS.html index 440cffff1a..1a821f512b 100644 --- a/tests/test_Layer_WMS.html +++ b/tests/test_Layer_WMS.html @@ -24,6 +24,7 @@ map.addLayer(layer); var pixel = new OpenLayers.Pixel(5,6); var tile = layer.addTile(new OpenLayers.Bounds(1,2,3,4), pixel); + tile.draw(); t.eq( tile.img.src, "http://octo.metacarta.com/cgi-bin/mapserv?BBOX=1,2,3,4&WIDTH=256&HEIGHT=256&MAP=/mapdata/vmap_wms.map&LAYERS=basic&FORMAT=image/jpeg&SERVICE=WMS&VERSION=1.1.1&REQUEST=GetMap&STYLES=&EXCEPTIONS=application/vnd.ogc.se_inimage&SRS=EPSG:4326", "image src is created correctly via addtile" ); t.eq( tile.img.style.top, "6px", "image top is set correctly via addtile" ); t.eq( tile.img.style.left, "5px", "image top is set correctly via addtile" ); diff --git a/tests/test_Tile_Image.html b/tests/test_Tile_Image.html index 0f94a06bfd..4b3ef07168 100644 --- a/tests/test_Tile_Image.html +++ b/tests/test_Tile_Image.html @@ -26,6 +26,7 @@ t.plan( 4 ); var layer = new Object(); //bogus layer + layer.div = document.createElement("div"); var position = new OpenLayers.Pixel(20,30); var bounds = new OpenLayers.Bounds(1,2,3,4); var url = "http://www.openlayers.org/dev/tests/tileimage";