@@ -2956,21 +2956,21 @@ void TestProcessingGui::testFieldSelectionPanel()
2956
2956
QgsProcessingFieldPanelWidget w( nullptr, &fieldParam );
2957
2957
QSignalSpy spy( &w, &QgsProcessingFieldPanelWidget::changed );
2958
2958
2959
- QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 options selected" ) );
2959
+ QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 fields selected" ) );
2960
2960
w.setValue( QStringLiteral( "aa" ) );
2961
2961
QCOMPARE( spy.count(), 1 );
2962
2962
QCOMPARE( w.value().toList(), QVariantList() << QStringLiteral( "aa" ) );
2963
- QCOMPARE( w.mLineEdit->text(), QStringLiteral( "1 options selected " ) );
2963
+ QCOMPARE( w.mLineEdit->text(), QStringLiteral( "aa " ) );
2964
2964
2965
2965
w.setValue( QVariantList() << QStringLiteral( "bb" ) << QStringLiteral( "aa" ) );
2966
2966
QCOMPARE( spy.count(), 2 );
2967
2967
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 " ) );
2969
2969
2970
2970
w.setValue( QVariant() );
2971
2971
QCOMPARE( spy.count(), 3 );
2972
2972
QCOMPARE( w.value().toList(), QVariantList() );
2973
- QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 options selected" ) );
2973
+ QCOMPARE( w.mLineEdit->text(), QStringLiteral( "0 fields selected" ) );
2974
2974
2975
2975
}
2976
2976
@@ -4125,12 +4125,12 @@ void TestProcessingGui::testEnumSelectionPanel()
4125
4125
w.setValue( 1 );
4126
4126
QCOMPARE( spy.count(), 1 );
4127
4127
QCOMPARE( w.value().toList(), QVariantList() << 1 );
4128
- QCOMPARE( w.mLineEdit->text(), QStringLiteral( "1 options selected " ) );
4128
+ QCOMPARE( w.mLineEdit->text(), QStringLiteral( "b " ) );
4129
4129
4130
4130
w.setValue( QVariantList() << 2 << 0 );
4131
4131
QCOMPARE( spy.count(), 2 );
4132
4132
QCOMPARE( w.value().toList(), QVariantList() << 2 << 0 );
4133
- QCOMPARE( w.mLineEdit->text(), QStringLiteral( "2 options selected " ) );
4133
+ QCOMPARE( w.mLineEdit->text(), QStringLiteral( "c,a " ) );
4134
4134
4135
4135
w.setValue( QVariant() );
4136
4136
QCOMPARE( spy.count(), 3 );
@@ -4146,12 +4146,12 @@ void TestProcessingGui::testEnumSelectionPanel()
4146
4146
w2.setValue( QStringLiteral( "a" ) );
4147
4147
QCOMPARE( spy2.count(), 1 );
4148
4148
QCOMPARE( w2.value().toList(), QVariantList() << QStringLiteral( "a" ) );
4149
- QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "1 options selected " ) );
4149
+ QCOMPARE( w2.mLineEdit->text(), QStringLiteral( "a " ) );
4150
4150
4151
4151
w2.setValue( QVariantList() << QStringLiteral( "c" ) << QStringLiteral( "a" ) );
4152
4152
QCOMPARE( spy2.count(), 2 );
4153
4153
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 " ) );
4155
4155
4156
4156
w2.setValue( QVariant() );
4157
4157
QCOMPARE( spy2.count(), 3 );
0 commit comments