Create tests for OpenLayers.js. r=crschmidt (closes #1267)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@5922 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<ul id="testlist">
|
<ul id="testlist">
|
||||||
|
<li>test_OpenLayers.html</li>
|
||||||
<li>test_Ajax.html</li>
|
<li>test_Ajax.html</li>
|
||||||
<li>test_BaseTypes.html</li>
|
<li>test_BaseTypes.html</li>
|
||||||
<li>BaseTypes/test_Bounds.html</li>
|
<li>BaseTypes/test_Bounds.html</li>
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script id="script" src="../lib/OpenLayers.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function test_OpenLayers(t) {
|
||||||
|
t.plan(2);
|
||||||
|
|
||||||
|
var script = document.getElementById("script");
|
||||||
|
|
||||||
|
t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
|
||||||
|
|
||||||
|
script.setAttribute("src", "../lib/OpenLayers.js?foo");
|
||||||
|
t.eq(OpenLayers._getScriptLocation(), "../", "Script location with search string correctly detected.");
|
||||||
|
}
|
||||||
|
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
Reference in New Issue
Block a user