Skip to content

Commit

Permalink
use OpenLayers.Util.getImagesLocation() from default marker location
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.openlayers.org/trunk/openlayers@11169 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
  • Loading branch information
fredj committed Feb 21, 2011
1 parent dbf886d commit 3fce968
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/Format/Text.html
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit 3fce968

Please sign in to comment.