OpenLayers OpenLayers

root/trunk/openlayers/tests/Extras.html

Revision 7600, 0.5 kB (checked in by euzuro, 4 months ago)

small test fix to properly display message

Line 
1 <html>
2 <head>
3   <script src="../lib/OpenLayers.js"></script>
4   <script type="text/javascript">
5
6     var map;
7    
8     // Ensure that we continue to work if silly Javascript frameworks
9     // extend object.
10     Object.prototype.foo = function() { }
11     function test_Events_Object_Extension(t) {
12         t.plan(1)
13         map = new OpenLayers.Map("map");
14         t.ok(true, "Map created if object prototype is extended.");
15     }
16   </script>
17 </head>
18 <body>
19     <div id="map" style="width: 600px; height: 300px;"/>
20 </body>
21 </html>
Note: See TracBrowser for help on using the browser.