Skip to content
Permalink
Browse files

Fix failing test

  • Loading branch information
nyalldawson committed Jun 11, 2018
1 parent a98e7a1 commit 590b3806a594e52761cb64af10163d08b5948794
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/src/gui/testqgsmapcanvas.cpp
@@ -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()

0 comments on commit 590b380

Please sign in to comment.
You can’t perform that action at this time.