use OpenLayers.String.contains instead of the deprecated 'contains' function. No functional change.
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@
|
|||||||
var marker = new OpenLayers.Marker(ll);
|
var marker = new OpenLayers.Marker(ll);
|
||||||
mlayer.addMarker(marker);
|
mlayer.addMarker(marker);
|
||||||
|
|
||||||
t.ok(marker.icon.imageDiv.firstChild.src.contains("img/marker.png"), "Marker.png is default URL");
|
t.ok(OpenLayers.String.contains(marker.icon.imageDiv.firstChild.src, "img/marker.png"), "Marker.png is default URL");
|
||||||
|
|
||||||
marker.setUrl("http://example.com/broken.png");
|
marker.setUrl("http://example.com/broken.png");
|
||||||
t.eq(marker.icon.imageDiv.firstChild.src, "http://example.com/broken.png", "image source changes correctly.");
|
t.eq(marker.icon.imageDiv.firstChild.src, "http://example.com/broken.png", "image source changes correctly.");
|
||||||
|
|||||||
Reference in New Issue
Block a user