remove duplicated code in OpenLayers.html tests, no functional change
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10860 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -14,19 +14,3 @@
|
|||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function test_OpenLayers(t) {
|
|
||||||
t.plan(1);
|
|
||||||
|
|
||||||
var script = document.getElementById("script");
|
|
||||||
|
|
||||||
t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -17,22 +17,3 @@
|
|||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script src="bogus/1/OpenLayers.js-foo"></script>
|
|
||||||
<script src="bogus/2/foo-OpenLayers.js"></script>
|
|
||||||
<script src="../lib/OpenLayers.js?foo"></script>
|
|
||||||
<script src="bogus/3/after-OpenLayers.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function test_OpenLayers(t) {
|
|
||||||
t.plan(1);
|
|
||||||
|
|
||||||
var script = document.getElementById("script");
|
|
||||||
|
|
||||||
t.eq(OpenLayers._getScriptLocation(), "../", "Script location with search string correctly detected, and not fooled by other scripts.");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
@@ -17,22 +17,3 @@
|
|||||||
<body>
|
<body>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<script>
|
|
||||||
var OpenLayers = {singleFile: true};
|
|
||||||
</script>
|
|
||||||
<script src="../lib/OpenLayers.js"></script>
|
|
||||||
<script type="text/javascript">
|
|
||||||
function test_OpenLayers(t) {
|
|
||||||
t.plan(1);
|
|
||||||
|
|
||||||
var script = document.getElementById("script");
|
|
||||||
|
|
||||||
t.eq(OpenLayers._getScriptLocation(), "../lib/", "Script location for single file build correctly detected.");
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
|
||||||
<body>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|||||||
Reference in New Issue
Block a user