Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix failing unit test
  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent 961b63f commit 210c98b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/src/gui/testqgsattributeform.cpp
Expand Up @@ -78,8 +78,8 @@ void TestQgsAttributeForm::testFieldConstraint()
form.setFeature( ft );

// testing stuff
QString validLabel = QStringLiteral( "col0<font color=\"green\">*</font>" );
QString invalidLabel = QStringLiteral( "col0<font color=\"red\">*</font>" );
QString validLabel = QStringLiteral( "col0<font color=\"green\"></font>" );
QString invalidLabel = QStringLiteral( "col0<font color=\"red\"></font>" );

// set constraint
layer->setConstraintExpression( 0, QString() );
Expand Down Expand Up @@ -144,8 +144,8 @@ void TestQgsAttributeForm::testFieldMultiConstraints()

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

// get wrappers for each widget
QgsEditorWidgetWrapper *ww0, *ww1, *ww2, *ww3;
Expand Down

0 comments on commit 210c98b

Please sign in to comment.