Made _getScriptLocation smarter, and added it to SingleFile.js also. This means that single file builds no longer need to contain OpenLayers.js. r=eleomine (closes #2873)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@10822 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
<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>
|
||||
<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