Add Pixel unit test.

git-svn-id: http://svn.openlayers.org/trunk/openlayers@21 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
crschmidt
2006-05-13 01:04:06 +00:00
parent 768f800430
commit 29c62da8ee
2 changed files with 19 additions and 0 deletions

View File

@@ -2,4 +2,5 @@
<li>test_Control.html</li>
<li>test_Layer.html</li>
<li>test_Map.html</li>
<li>test_Pixel.html</li>
</ul>

18
tests/test_Pixel.html Normal file
View File

@@ -0,0 +1,18 @@
<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>