Add data tag names to datetime selftest.
Change-Id: I73a0faab06df99521a48f106d93dd7b9a620148d Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
This commit is contained in:
parent
95d0b27711
commit
7aa5a89eef
@ -78,10 +78,10 @@ void tst_DateTime::qurl_data() const
|
||||
QTest::addColumn<QUrl>("operandA");
|
||||
QTest::addColumn<QUrl>("operandB");
|
||||
|
||||
QTest::newRow("") << QUrl() << QUrl();
|
||||
QTest::newRow("") << QUrl(QLatin1String("http://example.com")) << QUrl();
|
||||
QTest::newRow("") << QUrl() << QUrl(QLatin1String("http://example.com"));
|
||||
QTest::newRow("") << QUrl(QLatin1String("http://example.com")) << QUrl(QLatin1String("http://example.com"));
|
||||
QTest::newRow("empty urls") << QUrl() << QUrl();
|
||||
QTest::newRow("empty rhs") << QUrl(QLatin1String("http://example.com")) << QUrl();
|
||||
QTest::newRow("empty lhs") << QUrl() << QUrl(QLatin1String("http://example.com"));
|
||||
QTest::newRow("same urls") << QUrl(QLatin1String("http://example.com")) << QUrl(QLatin1String("http://example.com"));
|
||||
}
|
||||
|
||||
QTEST_MAIN(tst_DateTime)
|
||||
|
@ -14,11 +14,13 @@
|
||||
</TestFunction>
|
||||
<TestFunction name="qurl">
|
||||
<Incident type="fail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp" line="74">
|
||||
<DataTag><![CDATA[empty rhs]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (operandA): http://example.com
|
||||
Expected (operandB): ]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp" line="74">
|
||||
<DataTag><![CDATA[empty lhs]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (operandA):
|
||||
Expected (operandB): http://example.com]]></Description>
|
||||
|
@ -5,11 +5,11 @@ FAIL! : tst_DateTime::dateTime() Compared values are not the same
|
||||
Actual (local): 2000/05/03 04:03:04.000[local time]
|
||||
Expected (utc): 2000/05/03 04:03:04.000[UTC]
|
||||
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp(33)]
|
||||
FAIL! : tst_DateTime::qurl() Compared values are not the same
|
||||
FAIL! : tst_DateTime::qurl(empty rhs) Compared values are not the same
|
||||
Actual (operandA): http://example.com
|
||||
Expected (operandB):
|
||||
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp(41)]
|
||||
FAIL! : tst_DateTime::qurl() Compared values are not the same
|
||||
FAIL! : tst_DateTime::qurl(empty lhs) Compared values are not the same
|
||||
Actual (operandA):
|
||||
Expected (operandB): http://example.com
|
||||
Loc: [/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp(41)]
|
||||
|
@ -16,11 +16,13 @@
|
||||
</TestFunction>
|
||||
<TestFunction name="qurl">
|
||||
<Incident type="fail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp" line="74">
|
||||
<DataTag><![CDATA[empty rhs]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (operandA): http://example.com
|
||||
Expected (operandB): ]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="/home/user/dev/qt5/qtbase/tests/auto/testlib/selftests/datetime/tst_datetime.cpp" line="74">
|
||||
<DataTag><![CDATA[empty lhs]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (operandA):
|
||||
Expected (operandB): http://example.com]]></Description>
|
||||
|
@ -11,10 +11,10 @@
|
||||
Expected (utc): 2000/05/03 04:03:04.000[UTC]" result="fail"/>
|
||||
</testcase>
|
||||
<testcase result="fail" name="qurl">
|
||||
<failure message="Compared values are not the same
|
||||
<failure tag="empty rhs" message="Compared values are not the same
|
||||
Actual (operandA): http://example.com
|
||||
Expected (operandB): " result="fail"/>
|
||||
<failure message="Compared values are not the same
|
||||
<failure tag="empty lhs" message="Compared values are not the same
|
||||
Actual (operandA):
|
||||
Expected (operandB): http://example.com" result="fail"/>
|
||||
</testcase>
|
||||
|
Loading…
Reference in New Issue
Block a user