From 30cb222f96d95d62ac75fdf454f8b4a20001d3d5 Mon Sep 17 00:00:00 2001 From: Jeremy Lainé Date: Wed, 18 Jul 2012 13:18:17 +0200 Subject: don't write null form values --- tests/tests.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'tests/tests.cpp') diff --git a/tests/tests.cpp b/tests/tests.cpp index 8d74938a..53cd1f3e 100644 --- a/tests/tests.cpp +++ b/tests/tests.cpp @@ -945,10 +945,9 @@ void TestDataForm::testSimple() { const QByteArray xml( "" - "Search" + "Joggle Search" "Fill out this form to search for information!" "" - "" "" "" ""); @@ -957,7 +956,8 @@ void TestDataForm::testSimple() parsePacket(form, xml); QCOMPARE(form.isNull(), false); - QCOMPARE(form.instructions(), QString("Fill out this form to search for information!")); + QCOMPARE(form.title(), QLatin1String("Joggle Search")); + QCOMPARE(form.instructions(), QLatin1String("Fill out this form to search for information!")); QCOMPARE(form.fields().size(), 1); QCOMPARE(form.fields().at(0).type(), QXmppDataForm::Field::TextSingleField); QCOMPARE(form.fields().at(0).isRequired(), true); -- cgit v1.2.3