[OpenLayers-Commits] r12146 - trunk/openlayers/tests/Handler
commits-20090109 at openlayers.org
commits-20090109 at openlayers.org
Thu Jun 30 11:15:29 EDT 2011
Author: ahocevar
Date: 2011-06-30 08:15:28 -0700 (Thu, 30 Jun 2011)
New Revision: 12146
Modified:
trunk/openlayers/tests/Handler/Feature.html
Log:
return value for style numbers is different in IE than in other browsers, so using parseInt
Modified: trunk/openlayers/tests/Handler/Feature.html
===================================================================
--- trunk/openlayers/tests/Handler/Feature.html 2011-06-30 14:55:28 UTC (rev 12145)
+++ trunk/openlayers/tests/Handler/Feature.html 2011-06-30 15:15:28 UTC (rev 12146)
@@ -654,9 +654,9 @@
map.addLayers([base, vector]);
map.addControl(new OpenLayers.Control.SelectFeature(vector, {autoActivate: true}));
map.zoomToMaxExtent();
- t.eq(vector.getZIndex(), "725", "vector layer's zIndex correct");
+ t.eq(parseInt(vector.getZIndex(), 10), 725, "vector layer's zIndex correct");
map.events.triggerEvent("changelayer");
- t.eq(vector.getZIndex(), "725", "vector layer's zIndex still correct after changelayer event");
+ t.eq(parseInt(vector.getZIndex(), 10), 725, "vector layer's zIndex still correct after changelayer event");
}
More information about the Commits
mailing list