File: Extras.html

package info (click to toggle)
openlayers 2.13.1%2Bds2-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 67,180 kB
  • ctags: 11,977
  • sloc: xml: 7,435; python: 891; sh: 44; makefile: 23
file content (21 lines) | stat: -rw-r--r-- 519 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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>