Skip to content
Permalink
Browse files

Merge pull request #2908 from SebDieBln/Test_ImprovePanningTest

improve the test of panning the map canvas by keyboard
  • Loading branch information
m-kuhn committed Mar 14, 2016
2 parents 1f8e94e + c7e675c commit bd6508aabccaacc1aa9a73f863f970c2fe03a775
Showing with 2 additions and 0 deletions.
  1. +2 −0 tests/src/gui/testqgsmapcanvas.cpp
@@ -145,8 +145,10 @@ void TestQgsMapCanvas::testPanByKeyboard()
QgsRectangle originalExtent = mCanvas->extent();
Q_FOREACH ( Qt::Key key, keys )
{
QgsRectangle tempExtent = mCanvas->extent();
QKeyEvent keyEvent( QEvent::KeyPress, key, Qt::NoModifier );
QApplication::sendEvent( mCanvas, &keyEvent );
QVERIFY( mCanvas->extent() != tempExtent );
}
QVERIFY( mCanvas->extent() == originalExtent );
}

0 comments on commit bd6508a

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