Skip to content
Permalink
Browse files

Fix failing unit test

  • Loading branch information
nyalldawson committed Nov 2, 2016
1 parent 961b63f commit 210c98bedcf0c83ae5e99a7bb7059fbcaa571743
Showing with 4 additions and 4 deletions.
  1. +4 −4 tests/src/gui/testqgsattributeform.cpp
@@ -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() );
@@ -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;

0 comments on commit 210c98b

Please sign in to comment.
You can’t perform that action at this time.