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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user