Improve test debugging

This commit is contained in:
Nyall Dawson 2016-11-15 12:59:12 +10:00
parent b5c1d0f24e
commit 8f8624a333

View File

@ -136,12 +136,12 @@ void TestQgsDualView::testSelectAll()
// Only show parts of the canvas, so only one selected feature is visible
mCanvas->setExtent( QgsRectangle( -139, 23, -100, 48 ) );
mDualView->mTableView->selectAll();
QVERIFY( mPointsLayer->selectedFeatureCount() == 10 );
QCOMPARE( mPointsLayer->selectedFeatureCount(), 10 );
mPointsLayer->selectByIds( QgsFeatureIds() );
mCanvas->setExtent( QgsRectangle( -110, 40, -100, 48 ) );
mDualView->mTableView->selectAll();
QVERIFY( mPointsLayer->selectedFeatureCount() == 1 );
QCOMPARE( mPointsLayer->selectedFeatureCount(), 1 );
}
void TestQgsDualView::testSort()