Skip to content

Commit

Permalink
Update test
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent cbc18e1 commit 71fd493
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/src/core/testqgslayoutmap.cpp
Expand Up @@ -514,9 +514,9 @@ void TestQgsLayoutMap::dataDefinedTemporalRange()
map->dataDefinedProperties().setProperty( QgsLayoutObject::EndDateTime, QgsProperty::fromValue( dt2 ) );
map->refreshDataDefinedProperty( QgsLayoutObject::StartDateTime );
map->refreshDataDefinedProperty( QgsLayoutObject::EndDateTime );
QCOMPARE( map->temporalRange(), QgsDateTimeRange( dt1, dt2 ) );
QCOMPARE( map->temporalRange(), QgsDateTimeRange( dt1, dt2, true, false ) );
QgsMapSettings ms = map->mapSettings( map->extent(), map->rect().size(), 300, false );
QCOMPARE( ms.temporalRange(), QgsDateTimeRange( dt1, dt2 ) );
QCOMPARE( ms.temporalRange(), QgsDateTimeRange( dt1, dt2, true, false ) );
}

void TestQgsLayoutMap::rasterized()
Expand Down Expand Up @@ -1937,7 +1937,7 @@ void TestQgsLayoutMap::testTemporal()
settings = map->mapSettings( map->extent(), QSize( 512, 512 ), 72, false );
renderContext = QgsRenderContext::fromMapSettings( settings );
QVERIFY( renderContext.isTemporal() );
QCOMPARE( renderContext.temporalRange(), QgsDateTimeRange( begin, end ) );
QCOMPARE( renderContext.temporalRange(), QgsDateTimeRange( begin, end, true, false ) );
}

QGSTEST_MAIN( TestQgsLayoutMap )
Expand Down

0 comments on commit 71fd493

Please sign in to comment.