Add Pixel unit test.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@21 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -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
18
tests/test_Pixel.html
Normal 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>
|
||||
Reference in New Issue
Block a user