remove unused diff and diffABS functions from OpenLayers.Pixel

git-svn-id: http://svn.openlayers.org/trunk/openlayers@129 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
euzuro
2006-05-18 05:19:51 +00:00
parent 6b43a2d977
commit bb55859445
4 changed files with 3 additions and 55 deletions
-30
View File
@@ -31,36 +31,6 @@
t.eq( pixel.x, 5, "changing oldPixel.x doesn't change pixel.x");
}
function test_04_Pixel_diff(t) {
t.plan( 4 );
pixelA = new OpenLayers.Pixel(10,100);
pixelB = new OpenLayers.Pixel(15,150);
diffpx = pixelA.diff(pixelB);
t.eq( pixelA.x, 10, "pixelA.x is not modified by diff operation");
t.eq( pixelA.y, 100, "pixelA.y is not modified by diff operation");
t.eq( diffpx.x, -5, "diffpx.x is set correctly");
t.eq( diffpx.y, -50, "diffpx.y is set correctly");
}
function test_05_Pixel_diffABS(t) {
t.plan( 4 );
pixelA = new OpenLayers.Pixel(10,100);
pixelB = new OpenLayers.Pixel(15,150);
diffABSpx = pixelA.diffABS(pixelB);
t.eq( pixelA.x, 10, "pixelA.x is not modified by diffABS operation");
t.eq( pixelA.y, 100, "pixelA.y is not modified by diffABS operation");
t.eq( diffABSpx.x, 5, "diffABSpx.x is set correctly");
t.eq( diffABSpx.y, 50, "diffABSpx.y is set correctly");
}
function test_06_Pixel_equals(t) {
t.plan( 4 );
pixel = new OpenLayers.Pixel(5,6);