mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-01 00:46:20 -05:00
Fix failing test
This commit is contained in:
parent
a98e7a141a
commit
590b3806a5
@ -194,7 +194,7 @@ void TestQgsMapCanvas::testMagnification()
|
||||
checker.setControlName( QStringLiteral( "expected_map_magnification" ) );
|
||||
checker.setRenderedImage( tmpName );
|
||||
checker.setSizeTolerance( 10, 10 );
|
||||
QCOMPARE( checker.compareImages( "map_magnification", 100 ), true );
|
||||
QCOMPARE( checker.compareImages( QStringLiteral( "map_magnification" ), 100 ), true );
|
||||
}
|
||||
|
||||
void compareExtent( const QgsRectangle &initialExtent,
|
||||
@ -303,6 +303,7 @@ void TestQgsMapCanvas::testMagnificationScale()
|
||||
|
||||
void TestQgsMapCanvas::testScaleLockCanvasResize()
|
||||
{
|
||||
QSize prevSize = mCanvas->size();
|
||||
mCanvas->resize( 600, 400 );
|
||||
QCOMPARE( mCanvas->width(), 600 );
|
||||
QCOMPARE( mCanvas->height(), 400 );
|
||||
@ -320,6 +321,7 @@ void TestQgsMapCanvas::testScaleLockCanvasResize()
|
||||
|
||||
mCanvas->setScaleLocked( false );
|
||||
mCanvas->setMagnificationFactor( 1.0 );
|
||||
mCanvas->resize( prevSize );
|
||||
}
|
||||
|
||||
void TestQgsMapCanvas::testZoomByWheel()
|
||||
|
Loading…
x
Reference in New Issue
Block a user