Skip to content

Commit 210c98b

Browse files
committedNov 2, 2016
Fix failing unit test
1 parent 961b63f commit 210c98b

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎tests/src/gui/testqgsattributeform.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ void TestQgsAttributeForm::testFieldConstraint()
7878
form.setFeature( ft );
7979

8080
// testing stuff
81-
QString validLabel = QStringLiteral( "col0<font color=\"green\">*</font>" );
82-
QString invalidLabel = QStringLiteral( "col0<font color=\"red\">*</font>" );
81+
QString validLabel = QStringLiteral( "col0<font color=\"green\"></font>" );
82+
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );
8383

8484
// set constraint
8585
layer->setConstraintExpression( 0, QString() );
@@ -144,8 +144,8 @@ void TestQgsAttributeForm::testFieldMultiConstraints()
144144

145145
// testing stuff
146146
QSignalSpy spy( &form, SIGNAL( attributeChanged( QString, QVariant ) ) );
147-
QString val = QStringLiteral( "<font color=\"green\">*</font>" );
148-
QString inv = QStringLiteral( "<font color=\"red\">*</font>" );
147+
QString val = QStringLiteral( "<font color=\"green\"></font>" );
148+
QString inv = QStringLiteral( "<font color=\"red\"></font>" );
149149

150150
// get wrappers for each widget
151151
QgsEditorWidgetWrapper *ww0, *ww1, *ww2, *ww3;

0 commit comments

Comments
 (0)
Please sign in to comment.