Files
openlayers/tests/OpenLayers4.html
2011-02-21 13:02:11 +00:00

19 lines
604 B
HTML

<html>
<head>
<script type="text/javascript">
OpenLayers = {singleFile: true}; // just to make the test run faster
document.write('<scr'+'ipt src="../lib/OpenLayers.js"></scr'+'ipt>');
document.write('<scr'+'ipt src="bogus/foo-/OpenLayers.js"></scr'+'ipt>');
</script>
<script type="text/javascript">
function test_OpenLayers(t) {
t.plan(1);
t.eq(OpenLayers._getScriptLocation(), "../lib/",
"Script location correctly detected, and not fooled by other scripts.");
}
</script>
</head>
<body>
</body>
</html>