Merge pull request #286 from marcjansen/imgpath

Declare ImgPath property of OpenLayers in OpenLayers.js (r=@elemoine,@ahocevar)
This commit is contained in:
Marc Jansen
2012-03-06 23:02:25 -08:00
4 changed files with 77 additions and 13 deletions

View File

@@ -3,11 +3,13 @@
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(1);
var script = document.getElementById("script");
t.plan(3);
t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
t.ok(OpenLayers.ImgPath !== undefined, "An ImgPath property exists.");
t.eq(OpenLayers.ImgPath, '', "The default for OpenLayers.ImgPath is the empty string.");
}
</script>
</head>