add tests for SingleFile._getScriptLocation
This commit is contained in:
@@ -0,0 +1,15 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="some/path/OpenLayers.js"></script>
|
||||||
|
<script src="../lib/OpenLayers/SingleFile.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function test_OpenLayers(t) {
|
||||||
|
t.plan(1);
|
||||||
|
t.eq(OpenLayers._getScriptLocation(), "some/path/",
|
||||||
|
"Script location correctly detected (OpenLayers.js).");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="some/path/OpenLayers.light.js"></script>
|
||||||
|
<script src="../lib/OpenLayers/SingleFile.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function test_OpenLayers(t) {
|
||||||
|
t.plan(1);
|
||||||
|
t.eq(OpenLayers._getScriptLocation(), "some/path/",
|
||||||
|
"Script location correctly detected (OpenLayers.light.js) .");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -0,0 +1,15 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<script src="some/path/OpenLayers.light.debug.js"></script>
|
||||||
|
<script src="../lib/OpenLayers/SingleFile.js"></script>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function test_OpenLayers(t) {
|
||||||
|
t.plan(1);
|
||||||
|
t.eq(OpenLayers._getScriptLocation(), "some/path/",
|
||||||
|
"Script location correctly detected (OpenLayers.light.debug.js).");
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
@@ -182,6 +182,9 @@
|
|||||||
<li>OpenLayers3.html</li>
|
<li>OpenLayers3.html</li>
|
||||||
<li>OpenLayers4.html</li>
|
<li>OpenLayers4.html</li>
|
||||||
<li>OpenLayersJsFiles.html</li>
|
<li>OpenLayersJsFiles.html</li>
|
||||||
|
<li>SingleFile1.html</html>
|
||||||
|
<li>SingleFile2.html</html>
|
||||||
|
<li>SingleFile3.html</html>
|
||||||
<li>Popup.html</li>
|
<li>Popup.html</li>
|
||||||
<li>Popup/Anchored.html</li>
|
<li>Popup/Anchored.html</li>
|
||||||
<li>Popup/AnchoredBubble.html</li>
|
<li>Popup/AnchoredBubble.html</li>
|
||||||
|
|||||||
Reference in New Issue
Block a user