Skip to content
Permalink
Browse files

updated tests format

  • Loading branch information
Samweli authored and nyalldawson committed Feb 19, 2020
1 parent 0256951 commit f39a5765d6ad8f89d056e6670e10f85b419f6e26
@@ -289,7 +289,7 @@ QgsWmstResolution QgsWmsSettings::parseWmstResolution( QString item )
if ( datesSymbol == 'M' && item.contains( 'M' ) )
{
// Symbol M is used to both represent either month or minutes
// The check below is for determing whether it means month or minutes
// The check below is for determining whether it means month or minutes
if ( item.contains( 'T' ) &&
item.indexOf( 'T' ) < item.indexOf( 'M' ) )
continue;
@@ -84,9 +84,9 @@ void TestQgsRasterDataProviderTemporalCapabilities::checkActiveStatus()
void TestQgsRasterDataProviderTemporalCapabilities::checkTemporalRange()
{
QgsDateTimeRange fixedDateTimeRange = QgsDateTimeRange( QDateTime( QDate( 2020, 1, 1 ) ),
QDateTime( QDate( 2020, 12, 31 ) ) );
QDateTime( QDate( 2020, 12, 31 ) ) );
QgsDateTimeRange dateTimeRange = QgsDateTimeRange( QDateTime( QDate( 2020, 1, 1 ) ),
QDateTime( QDate( 2020, 3, 1 ) ) );
QDateTime( QDate( 2020, 3, 1 ) ) );

temporalCapabilities->setTemporalRange( dateTimeRange );
temporalCapabilities->setFixedTemporalRange( fixedDateTimeRange );
@@ -98,9 +98,9 @@ void TestQgsRasterDataProviderTemporalCapabilities::checkTemporalRange()
void TestQgsRasterDataProviderTemporalCapabilities::checkReferenceTemporalRange()
{
QgsDateTimeRange fixedDateTimeRange = QgsDateTimeRange( QDateTime( QDate( 2020, 1, 1 ) ),
QDateTime( QDate( 2020, 12, 31 ) ) );
QDateTime( QDate( 2020, 12, 31 ) ) );
QgsDateTimeRange dateTimeRange = QgsDateTimeRange( QDateTime( QDate( 2020, 1, 1 ) ),
QDateTime( QDate( 2020, 3, 1 ) ) );
QDateTime( QDate( 2020, 3, 1 ) ) );

temporalCapabilities->setReferenceTemporalRange( dateTimeRange );
temporalCapabilities->setFixedReferenceTemporalRange( fixedDateTimeRange );

0 comments on commit f39a576

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