Files
openlayers/tests/test_LonLat.html
2006-05-17 15:51:37 +00:00

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>