Skip to content

Commit 7f2fac1

Browse files
committedFeb 19, 2015
Add some more test mask images
Also some debugging info for tests failing on certain platforms.
1 parent 74d0846 commit 7f2fac1

14 files changed

+9
-30
lines changed
 

‎tests/src/core/testqgscoordinatetransform.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,12 @@ void TestQgsCoordinateTransform::transformBoundingBox()
6161
expectedRect.setYMinimum( -39.7222 );
6262
expectedRect.setXMaximum( -176.549 );
6363
expectedRect.setYMaximum( -36.3951 );
64+
65+
qDebug( "BBox transform x min: %.17f", resultRect.xMinimum() );
66+
qDebug( "BBox transform x max: %.17f", resultRect.xMaximum() );
67+
qDebug( "BBox transform y min: %.17f", resultRect.yMinimum() );
68+
qDebug( "BBox transform y max: %.17f", resultRect.yMaximum() );
69+
6470
QVERIFY( qgsDoubleNear( resultRect.xMinimum(), expectedRect.xMinimum(), 0.001 ) );
6571
QVERIFY( qgsDoubleNear( resultRect.yMinimum(), expectedRect.yMinimum(), 0.001 ) );
6672
QVERIFY( qgsDoubleNear( resultRect.xMaximum(), expectedRect.xMaximum(), 0.001 ) );
@@ -69,3 +75,4 @@ void TestQgsCoordinateTransform::transformBoundingBox()
6975

7076
QTEST_MAIN( TestQgsCoordinateTransform )
7177
#include "testqgscoordinatetransform.moc"
78+

‎tests/src/core/testqgsmaptopixel.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@ void TestQgsMapToPixel::legacy()
5050
QCOMPARE( p.x(), -10.2 );
5151
QCOMPARE( p.y(), 11.2 );
5252
d = m2p.transform( p );
53-
QCOMPARE( d, QgsPoint( -1, -1 ) );
53+
QCOMPARE( d.x(), -1.0 );
54+
QCOMPARE( d.y(), -1.0 );
5455

5556
p = m2p.toMapCoordinates( 20, 20 );
5657
QCOMPARE( p.x(), -6.0 );
Loading
Binary file not shown.
Loading
Loading
Loading
Binary file not shown.

‎tests/testdata/control_images/expected_raster_transparency/expected_raster_transparency.png.aux.xml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Loading
Binary file not shown.

0 commit comments

Comments
 (0)
Please sign in to comment.