From 8218798cf9ac28a60fac65c500a0f4721d34e9ce Mon Sep 17 00:00:00 2001 From: Schuyler Erle Date: Tue, 16 May 2006 22:26:24 +0000 Subject: [PATCH] Added check for layer.map === map to Map tests. git-svn-id: http://svn.openlayers.org/trunk/openlayers@62 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- tests/test_Map.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/test_Map.html b/tests/test_Map.html index bbcb062e80..a3200d18db 100644 --- a/tests/test_Map.html +++ b/tests/test_Map.html @@ -31,7 +31,7 @@ t.eq( map.getCenter().lon, 2, "map center lon is correct after calling setCenter"); } function test_03_Map_add_layers(t) { - t.plan(4); + t.plan(5); map = new OpenLayers.Map($('map')); var layer1 = new OpenLayers.Layer.WMS("Layer 1", "http://octo.metacarta.com/cgi-bin/mapserv?", @@ -43,6 +43,7 @@ t.eq( map.layers.length, 2, "map has exactly two layers" ); t.ok( map.layers[0] === layer1, "1st layer is layer1" ); t.ok( map.layers[1] === layer2, "2nd layer is layer2" ); + t.ok( layer1.map === map, "layer.map is map" ); t.eq( parseInt(layer1.div.style.zIndex), map.Z_INDEX_BASE['Layer'], "layer1 zIndex is set" ); }