diff options
Diffstat (limited to 'misc/openlayers/tests/OpenLayers4.html')
-rw-r--r-- | misc/openlayers/tests/OpenLayers4.html | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/openlayers/tests/OpenLayers4.html b/misc/openlayers/tests/OpenLayers4.html new file mode 100644 index 0000000..7c9012c --- /dev/null +++ b/misc/openlayers/tests/OpenLayers4.html @@ -0,0 +1,18 @@ +<html> +<head> + <script type="text/javascript"> + OpenLayers = {singleFile: true}; // just to make the test run faster + document.write('<scr'+'ipt src="../lib/OpenLayers.js"></scr'+'ipt>'); + document.write('<scr'+'ipt src="bogus/foo-/OpenLayers.js"></scr'+'ipt>'); + </script> + <script type="text/javascript"> + function test_OpenLayers(t) { + t.plan(1); + t.eq(OpenLayers._getScriptLocation(), "../lib/", + "Script location correctly detected, and not fooled by other scripts."); + } + </script> +</head> +<body> +</body> +</html> |