summaryrefslogtreecommitdiff
path: root/misc/openlayers/tests/Extras.html
diff options
context:
space:
mode:
Diffstat (limited to 'misc/openlayers/tests/Extras.html')
-rw-r--r--misc/openlayers/tests/Extras.html21
1 files changed, 21 insertions, 0 deletions
diff --git a/misc/openlayers/tests/Extras.html b/misc/openlayers/tests/Extras.html
new file mode 100644
index 0000000..264eb0f
--- /dev/null
+++ b/misc/openlayers/tests/Extras.html
@@ -0,0 +1,21 @@
+<html>
+<head>
+ <script src="OLLoader.js"></script>
+ <script type="text/javascript">
+
+ var map;
+
+ // Ensure that we continue to work if silly Javascript frameworks
+ // extend object.
+ Object.prototype.foo = function() { }
+ function test_Events_Object_Extension(t) {
+ t.plan(1)
+ map = new OpenLayers.Map("map");
+ t.ok(true, "Map created if object prototype is extended.");
+ }
+ </script>
+</head>
+<body>
+ <div id="map" style="width: 600px; height: 300px;"/>
+</body>
+</html>