提交 | 用户 | 时间
|
58d006
|
1 |
<!DOCTYPE html> |
A |
2 |
<html> |
|
3 |
<head> |
|
4 |
<title>gmaps.js test</title> |
|
5 |
<link rel="stylesheet" type="text/css" href="lib/jasmine.css" /> |
|
6 |
<link rel="stylesheet" href="style.css" /> |
|
7 |
<script type="text/javascript" src="lib/jasmine.js"></script> |
|
8 |
<script type="text/javascript" src="lib/jasmine-html.js"></script> |
|
9 |
|
|
10 |
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script> |
|
11 |
<script type="text/javascript" src="../gmaps.js"></script> |
|
12 |
|
|
13 |
<script type="text/javascript" src="spec/MapSpec.js"></script> |
|
14 |
<script type="text/javascript" src="spec/MarkerSpec.js"></script> |
|
15 |
<script type="text/javascript" src="spec/GeometrySpec.js"></script> |
|
16 |
<script type="text/javascript" src="spec/LayerSpec.js"></script> |
|
17 |
<script type="text/javascript" src="spec/OverlaySpec.js"></script> |
|
18 |
<script type="text/javascript" src="spec/RouteSpec.js"></script> |
|
19 |
<script type="text/javascript" src="spec/StyleSpec.js"></script> |
|
20 |
<script type="text/javascript" src="spec/StreetViewSpec.js"></script> |
|
21 |
<script type="text/javascript" src="spec/EventSpec.js"></script> |
|
22 |
|
|
23 |
<script type="text/javascript"> |
|
24 |
(function() { |
|
25 |
var jasmineEnv = jasmine.getEnv(); |
|
26 |
jasmineEnv.updateInterval = 1000; |
|
27 |
|
|
28 |
var htmlReporter = new jasmine.HtmlReporter(); |
|
29 |
|
|
30 |
jasmineEnv.addReporter(htmlReporter); |
|
31 |
|
|
32 |
jasmineEnv.specFilter = function(spec) { |
|
33 |
return htmlReporter.specFilter(spec); |
|
34 |
}; |
|
35 |
|
|
36 |
var currentWindowOnload = window.onload; |
|
37 |
|
|
38 |
window.onload = function() { |
|
39 |
if (currentWindowOnload) { |
|
40 |
currentWindowOnload(); |
|
41 |
} |
|
42 |
|
|
43 |
execJasmine(); |
|
44 |
}; |
|
45 |
|
|
46 |
function execJasmine() { |
|
47 |
jasmineEnv.execute(); |
|
48 |
} |
|
49 |
|
|
50 |
})(); |
|
51 |
</script> |
|
52 |
</head> |
|
53 |
<body> |
|
54 |
<h3>Basic map</h3> |
|
55 |
<div class="map" id="basic-map"></div> |
|
56 |
<h3>Advanced map</h3> |
|
57 |
<div class="map" id="advanced-map"></div> |
|
58 |
<h3>Map with events</h3> |
|
59 |
<div class="map" id="map-with-events"></div> |
|
60 |
<h3>Map with markers</h3> |
|
61 |
<div class="map" id="map-with-markers"></div> |
|
62 |
<h3>Map with custom controls</h3> |
|
63 |
<div class="map" id="map-with-custom-controls"></div> |
|
64 |
<h3>Map with polygons</h3> |
|
65 |
<div class="map" id="map-with-polygons"></div> |
|
66 |
<h3>Map with layers</h3> |
|
67 |
<div class="map" id="map-with-layers"></div> |
|
68 |
<h3>Map with overlays</h3> |
|
69 |
<div class="map" id="map-with-overlays"></div> |
|
70 |
<h3>Map with routes</h3> |
|
71 |
<div class="map" id="map-with-routes"></div> |
|
72 |
<h3>Map with styles</h3> |
|
73 |
<div class="map" id="map-with-styles"></div> |
|
74 |
<h3>Street View Panorama</h3> |
|
75 |
<div class="panorama" id="streetview-standalone-panorama"></div> |
|
76 |
<h3>Map with Street View</h3> |
|
77 |
<div class="with-columns"> |
|
78 |
<div class="map" id="map-with-streetview"></div> |
|
79 |
<div class="panorama" id="streetview-panorama"></div> |
|
80 |
</div> |
|
81 |
<h3>Street View Panorama with events</h3> |
|
82 |
<div class="panorama" id="streetview-with-events"></div> |
|
83 |
<h3>Events</h3> |
|
84 |
<div class="map" id="events"></div> |
|
85 |
</body> |
|
86 |
</html> |