fix up Graticule test in IE, missing var keyword

git-svn-id: http://svn.openlayers.org/trunk/openlayers@9796 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
bartvde
2009-11-12 19:28:11 +00:00
parent 12c83b533d
commit 33e39a205a

View File

@@ -3,18 +3,18 @@
<script src="../../lib/OpenLayers.js"></script>
<script src="http://proj4js.org/lib/proj4js-compressed.js"></script>
<script type="text/javascript">
function test_initialize(t) {
t.plan(2);
var options = {};
map = new OpenLayers.Map("map",{projection:"EPSG:4326"});
var map = new OpenLayers.Map("map",{projection:"EPSG:4326"});
var layer = new OpenLayers.Layer.WMS();
map.addLayers([layer]);
var control = new OpenLayers.Control.Graticule(options);
map.addControl(control);
map.zoomToMaxExtent();
t.ok(control.gratLayer instanceof OpenLayers.Layer.Vector,
"constructor sets layer correctly");
t.ok(control.gratLayer.features.length > 0,