summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/OpenLayers1.html
diff options
context:
space:
mode:
Diffstat (limited to 'misc/openlayers/tests/OpenLayers1.html')
-rw-r--r--misc/openlayers/tests/OpenLayers1.html18
1 files changed, 18 insertions, 0 deletions
diff --git a/misc/openlayers/tests/OpenLayers1.html b/misc/openlayers/tests/OpenLayers1.html
new file mode 100644
index 0000000..1d96be3
--- /dev/null
+++ b/misc/openlayers/tests/OpenLayers1.html
@@ -0,0 +1,18 @@
+<html>
+<head>
+ <script src="../lib/OpenLayers.js"></script>
+ <script type="text/javascript">
+ function test_OpenLayers(t) {
+ t.plan(3);
+
+ t.eq(OpenLayers._getScriptLocation(), "../", "Script location correctly detected.");
+
+ t.ok(OpenLayers.ImgPath !== undefined, "An ImgPath property exists.");
+
+ t.eq(OpenLayers.ImgPath, '', "The default for OpenLayers.ImgPath is the empty string.");
+ }
+ </script>
+</head>
+<body>
+</body>
+</html>