Files
openlayers/tests/OpenLayers1.html
Marc Jansen 8f0280e8bd Add two trivial tests for the presence and default
value of OpenLayers.ImgPath.
2012-03-05 21:23:40 +01:00

21 lines
584 B
HTML

<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(3);
var script = document.getElementById("script");
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>
<body>
</body>
</html>