mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
Fix more tests
This commit is contained in:
parent
476b1deced
commit
c6d939f1ec
@ -959,7 +959,7 @@ void TestQgsLayoutMapGrid::annotationFormats()
|
||||
gridProjected.setAnnotationFormat( QgsLayoutItemMapGrid::CustomFormat );
|
||||
gridProjected.setAnnotationExpression( QStringLiteral( "(@grid_number/10) || case when @grid_axis ='x' then 'a' else 'b' end" ) );
|
||||
QCOMPARE( gridProjected.gridAnnotationString( 45, QgsLayoutItemMapGrid::Latitude, expressionContext ), QString( "4.5b" ) );
|
||||
QCOMPARE( gridProjected.gridAnnotationString( 34, QgsLayoutItemMapGrid::Longitude, expressionContext ), QString( "3.4a" ) );
|
||||
QCOMPARE( gridProjected.gridAnnotationString( 35, QgsLayoutItemMapGrid::Longitude, expressionContext ), QString( "3.5a" ) );
|
||||
}
|
||||
|
||||
void TestQgsLayoutMapGrid::descendingAnnotations()
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 9.4 KiB After Width: | Height: | Size: 12 KiB |
Loading…
x
Reference in New Issue
Block a user