git-svn-id: http://svn.openlayers.org/trunk/openlayers@99 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
19 lines
502 B
HTML
19 lines
502 B
HTML
<html>
|
|
<head>
|
|
<script src="../lib/OpenLayers.js"></script>
|
|
<script type="text/javascript"><!--
|
|
var lonlat;
|
|
function test_01_LonLat_constructor (t) {
|
|
t.plan( 3 );
|
|
lonlat = new OpenLayers.LonLat(6, 5);
|
|
t.ok( lonlat instanceof OpenLayers.LonLat, "new OpenLayers.LonLat returns LonLat object" );
|
|
t.eq( lonlat.lat, 5, "lonlat.lat is set correctly");
|
|
t.eq( lonlat.lon, 6, "lonlat.lon is set correctly");
|
|
}
|
|
// -->
|
|
</script>
|
|
</head>
|
|
<body>
|
|
</body>
|
|
</html>
|