summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/OpenLayers4.html
blob: 7c9012c6416d76c794754041150da2073a0efc24 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<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>