Skip to content

Commit fe53fee

Browse files
committed
fix tests
1 parent adb8d47 commit fe53fee

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

app/test/testposition.cpp

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -395,7 +395,7 @@ void TestPosition::testPositionTracking()
395395

396396
trackingSpy.wait( 4000 ); // new position should be emited in 2k ms
397397

398-
QVERIFY( manager.trackedGeometry().asWkt( 3 ).startsWith( QStringLiteral( "LineStringZM (-92.36 38.93 20" ) ) );
398+
QVERIFY( manager.trackedGeometry().asWkt( 3 ).startsWith( QStringLiteral( "LineString ZM (-92.36 38.93 20" ) ) );
399399

400400
// store the geometry
401401
QgsVectorLayer *trackingLayer = QgsProject::instance()->mapLayer<QgsVectorLayer *>( "tracking_layer_aad89df7_21db_466e_b5c1_a80160f74c01" );
@@ -409,7 +409,7 @@ void TestPosition::testPositionTracking()
409409

410410
int addedFid = addedSpy.at( 1 ).at( 0 ).toInt();
411411
QgsFeature f = trackingLayer->getFeature( addedFid );
412-
QVERIFY( f.geometry().asWkt( 3 ).startsWith( QStringLiteral( "LineStringZM (-92.36 38.93 20" ) ) );
412+
QVERIFY( f.geometry().asWkt( 3 ).startsWith( QStringLiteral( "LineString ZM (-92.36 38.93 20" ) ) );
413413

414414
QString datetimeFormat = QStringLiteral( "dd.MM.yyyy hh:mm:ss" );
415415
QString dateTrackingStartedFromManager = manager.startTime().toString( datetimeFormat );
@@ -448,7 +448,7 @@ void TestPosition::testPositionTrackingHighlight()
448448
trackingHighlight.setTrackedGeometry( g );
449449
trackingHighlight.setMapPosition( p );
450450

451-
QString result = QStringLiteral( "LineStringZM (5 5 5 5, 10 10 10 nan)" );
451+
QString result = QStringLiteral( "LineString ZM (5 5 5 5, 10 10 10 nan)" );
452452

453453
QCOMPARE( trackingHighlight.highlightGeometry().asWkt( 1 ), result );
454454

@@ -459,7 +459,7 @@ void TestPosition::testPositionTrackingHighlight()
459459
trackingHighlight.setTrackedGeometry( g );
460460
trackingHighlight.setMapPosition( p );
461461

462-
result = QStringLiteral( "LineStringZM (5 5 5 5, 6 6 5 5, 10 10 10 nan)" );
462+
result = QStringLiteral( "LineString ZM (5 5 5 5, 6 6 5 5, 10 10 10 nan)" );
463463

464464
QCOMPARE( trackingHighlight.highlightGeometry().asWkt( 1 ), result );
465465

@@ -470,15 +470,15 @@ void TestPosition::testPositionTrackingHighlight()
470470
trackingHighlight.setTrackedGeometry( g );
471471
trackingHighlight.setMapPosition( p );
472472

473-
result = QStringLiteral( "LineStringZM (5 5 5 5, 6 6 5 5, 7 7 5 5, 10 10 10 nan)" );
473+
result = QStringLiteral( "LineString ZM (5 5 5 5, 6 6 5 5, 7 7 5 5, 10 10 10 nan)" );
474474

475475
QCOMPARE( trackingHighlight.highlightGeometry().asWkt( 1 ), result );
476476

477477
// change map position
478478
p = QgsPoint( 20, 20, 20 );
479479
trackingHighlight.setMapPosition( p );
480480

481-
result = QStringLiteral( "LineStringZM (5 5 5 5, 6 6 5 5, 7 7 5 5, 20 20 20 nan)" );
481+
result = QStringLiteral( "LineString ZM (5 5 5 5, 6 6 5 5, 7 7 5 5, 20 20 20 nan)" );
482482
QCOMPARE( trackingHighlight.highlightGeometry().asWkt( 1 ), result );
483483

484484
// lost map position

0 commit comments

Comments
 (0)