Files
openlayers/tests/test_Pixel.html
euzuro aca2bc30b4 fixed tab / spacing
git-svn-id: http://svn.openlayers.org/trunk/openlayers@46 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
2006-05-16 18:21:29 +00:00

22 lines
495 B
HTML

<html>
<head>
<script src="../lib/OpenLayers.js"></script>
<script type="text/javascript"><!--
var pixel;
function test_01_Pixel_constructor (t) {
t.plan( 3 );
pixel = new OpenLayers.Pixel(5,6);
t.ok( pixel instanceof OpenLayers.Pixel, "new OpenLayers.Pixel returns Pixel object" );
t.eq( pixel.x, 5, "pixel.x is set correctly");
t.eq( pixel.y, 6, "pixel.y is set correctly");
}
// -->
</script>
</head>
<body>
</body>
</html>