~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to gis/dhis-gis-geostat/mfbase/openlayers/tests/OpenLayers.html

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<html>
 
2
<head>
 
3
  <script id="script" src="../lib/OpenLayers.js"></script>
 
4
  <script type="text/javascript">
 
5
    function test_OpenLayers(t) {
 
6
        t.plan(2);
 
7
        
 
8
        var script = document.getElementById("script");
 
9
 
 
10
        t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
 
11
        
 
12
        script.setAttribute("src", "../lib/OpenLayers.js?foo");
 
13
        t.eq(OpenLayers._getScriptLocation(), "../", "Script location with search string correctly detected.");
 
14
    }
 
15
 
 
16
  </script>
 
17
</head>
 
18
<body>
 
19
</body>
 
20
</html>