3
<script id="script" src="../lib/OpenLayers.js"></script>
4
<script type="text/javascript">
5
function test_OpenLayers(t) {
8
var script = document.getElementById("script");
10
t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
12
script.setAttribute("src", "../lib/OpenLayers.js?foo");
13
t.eq(OpenLayers._getScriptLocation(), "../", "Script location with search string correctly detected.");