Skip to content

Commit cbf48c1

Browse files
committedJan 18, 2022
Update tests
1 parent 5e53eef commit cbf48c1

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed
 

‎tests/src/gui/testprocessinggui.cpp

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2956,21 +2956,21 @@ void TestProcessingGui::testFieldSelectionPanel()
29562956
QgsProcessingFieldPanelWidget w( nullptr, &fieldParam );
29572957
QSignalSpy spy( &w, &QgsProcessingFieldPanelWidget::changed );
29582958

2959-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 options selected" ) );
2959+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 fields selected" ) );
29602960
w.setValue( QStringLiteral( "aa" ) );
29612961
QCOMPARE( spy.count(), 1 );
29622962
QCOMPARE( w.value().toList(), QVariantList() << QStringLiteral( "aa" ) );
2963-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "1 options selected" ) );
2963+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "aa" ) );
29642964

29652965
w.setValue( QVariantList() << QStringLiteral( "bb" ) << QStringLiteral( "aa" ) );
29662966
QCOMPARE( spy.count(), 2 );
29672967
QCOMPARE( w.value().toList(), QVariantList() << QStringLiteral( "bb" ) << QStringLiteral( "aa" ) );
2968-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "2 options selected" ) );
2968+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "bb,aa" ) );
29692969

29702970
w.setValue( QVariant() );
29712971
QCOMPARE( spy.count(), 3 );
29722972
QCOMPARE( w.value().toList(), QVariantList() );
2973-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 options selected" ) );
2973+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 fields selected" ) );
29742974

29752975
}
29762976

@@ -4125,12 +4125,12 @@ void TestProcessingGui::testEnumSelectionPanel()
41254125
w.setValue( 1 );
41264126
QCOMPARE( spy.count(), 1 );
41274127
QCOMPARE( w.value().toList(), QVariantList() << 1 );
4128-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "1 options selected" ) );
4128+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "b" ) );
41294129

41304130
w.setValue( QVariantList() << 2 << 0 );
41314131
QCOMPARE( spy.count(), 2 );
41324132
QCOMPARE( w.value().toList(), QVariantList() << 2 << 0 );
4133-
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "2 options selected" ) );
4133+
QCOMPARE( w.mLineEdit->text(), QStringLiteral( "c,a" ) );
41344134

41354135
w.setValue( QVariant() );
41364136
QCOMPARE( spy.count(), 3 );
@@ -4146,12 +4146,12 @@ void TestProcessingGui::testEnumSelectionPanel()
41464146
w2.setValue( QStringLiteral( "a" ) );
41474147
QCOMPARE( spy2.count(), 1 );
41484148
QCOMPARE( w2.value().toList(), QVariantList() << QStringLiteral( "a" ) );
4149-
QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "1 options selected" ) );
4149+
QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "a" ) );
41504150

41514151
w2.setValue( QVariantList() << QStringLiteral( "c" ) << QStringLiteral( "a" ) );
41524152
QCOMPARE( spy2.count(), 2 );
41534153
QCOMPARE( w2.value().toList(), QVariantList() << QStringLiteral( "c" ) << QStringLiteral( "a" ) );
4154-
QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "2 options selected" ) );
4154+
QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "c,a" ) );
41554155

41564156
w2.setValue( QVariant() );
41574157
QCOMPARE( spy2.count(), 3 );

0 commit comments

Comments
 (0)
Please sign in to comment.