[OpenLayers-Commits] r11169 - trunk/openlayers/tests/Format

commits-20090109 at openlayers.org commits-20090109 at openlayers.org
Mon Feb 21 06:51:21 EST 2011


Author: fredj
Date: 2011-02-21 03:51:21 -0800 (Mon, 21 Feb 2011)
New Revision: 11169

Modified:
   trunk/openlayers/tests/Format/Text.html
Log:
use OpenLayers.Util.getImagesLocation() from default marker location

Modified: trunk/openlayers/tests/Format/Text.html
===================================================================
--- trunk/openlayers/tests/Format/Text.html	2011-02-21 11:35:38 UTC (rev 11168)
+++ trunk/openlayers/tests/Format/Text.html	2011-02-21 11:51:21 UTC (rev 11169)
@@ -8,7 +8,7 @@
         var features = format.read(OpenLayers.Util.getElement("content").value);
         t.eq(features[0].style.externalGraphic, format.defaultStyle.externalGraphic, "style is set to defaults if no style props set in text file");
         var features = format.read(OpenLayers.Util.getElement("contentMarker").value);
-        t.eq(features[0].style.externalGraphic, "../../img/marker.png", "marker set correctly by default.");
+        t.eq(features[0].style.externalGraphic, OpenLayers.Util.getImagesLocation() + "marker.png", "marker set correctly by default.");
         
         var features = format.read(OpenLayers.Util.getElement("content2").value);
         t.eq(features.length, 2, "two features read");



More information about the Commits mailing list