summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/OLLoader.js
diff options
context:
space:
mode:
authorChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
committerChris Schlaeger <chris@linux.com>2015-10-17 21:36:38 +0200
commite30f267181d990947e67909de4809fa941698c85 (patch)
tree46e9f94c2b3699ed378963b420b8a8d361286ea1 /misc/openlayers/tests/OLLoader.js
parente763ceb183f389fcd314a4a6a712d87c9d4cdb32 (diff)
downloadpostrunner-e30f267181d990947e67909de4809fa941698c85.zip
Upgrading openlayers to 3.x
Diffstat (limited to 'misc/openlayers/tests/OLLoader.js')
-rw-r--r--misc/openlayers/tests/OLLoader.js26
1 files changed, 0 insertions, 26 deletions
diff --git a/misc/openlayers/tests/OLLoader.js b/misc/openlayers/tests/OLLoader.js
deleted file mode 100644
index a2311c7..0000000
--- a/misc/openlayers/tests/OLLoader.js
+++ /dev/null
@@ -1,26 +0,0 @@
-// Adding a mode parameter with "build" as value in the run-tests.html will
-// make usage of the build version of the library.
-// get the OLLoader.js script location
-(function() {
- var r = new RegExp("(^|(.*?\\/))(" + "OLLoader.js" + ")(\\?|$)"),
- s = document.getElementsByTagName('script'),
- src, m, l = "";
- for(var i=0, len=s.length; i<len; i++) {
- src = s[i].getAttribute('src');
- if(src) {
- var m = src.match(r);
- if(m) {
- l = m[1];
- break;
- }
- }
- }
-
- var regex = new RegExp( "[\\?&]mode=([^&#]*)" );
- var href = window.parent.location.href;
- var results = regex.exec( href );
- l += (results && results[1] == 'build') ?
- "../build/OpenLayers.js" : "../lib/OpenLayers.js";
- scriptTag = "<script src='" + l + "'></script>";
- document.write(scriptTag);
-})();