Skip to content
Permalink
Browse files

Update test

  • Loading branch information
nyalldawson committed Mar 30, 2021
1 parent cbc18e1 commit 71fd4939428d650f3fe2b0e940a4ec7e6f7ca99d
Showing with 3 additions and 3 deletions.
  1. +3 −3 tests/src/core/testqgslayoutmap.cpp
@@ -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()
@@ -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 )

0 comments on commit 71fd493

Please sign in to comment.