Skip to content

Commit

Permalink
adapt test temporal navigation object
Browse files Browse the repository at this point in the history
  • Loading branch information
vcloarec authored and nyalldawson committed Apr 7, 2020
1 parent cf9e4af commit 70bbfca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/src/core/testqgstemporalnavigationobject.cpp
Expand Up @@ -147,6 +147,7 @@ void TestQgsTemporalNavigationObject::frameSettings()
QDateTime( QDate( 2020, 1, 1 ), QTime( 12, 0, 0 ) )
);
navigationObject->setTemporalExtents( range );
QCOMPARE( temporalRangeSignal.count(), 1 );

navigationObject->setFrameDuration( QgsInterval( 1, QgsUnitTypes::TemporalHours ) );
QCOMPARE( navigationObject->frameDuration(), QgsInterval( 1, QgsUnitTypes::TemporalHours ) );
Expand All @@ -156,7 +157,7 @@ void TestQgsTemporalNavigationObject::frameSettings()

navigationObject->setCurrentFrameNumber( 1 );
QCOMPARE( navigationObject->currentFrameNumber(), 1 );
QCOMPARE( temporalRangeSignal.count(), 1 );
QCOMPARE( temporalRangeSignal.count(), 2 );

navigationObject->setFramesPerSecond( 1 );
QCOMPARE( navigationObject->framesPerSecond(), 1.0 );
Expand Down

0 comments on commit 70bbfca

Please sign in to comment.