2011-04-27 10:05:43 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2013-01-19 10:52:03 +00:00
|
|
|
<testsuite errors="0" failures="20" tests="10" name="tst_Cmptest">
|
2011-04-27 10:05:43 +00:00
|
|
|
<properties>
|
|
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
|
|
|
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
|
|
|
</properties>
|
|
|
|
<testcase result="pass" name="initTestCase"/>
|
|
|
|
<testcase result="pass" name="compare_boolfuncs"/>
|
|
|
|
<testcase result="pass" name="compare_pointerfuncs"/>
|
|
|
|
<testcase result="fail" name="compare_tostring">
|
|
|
|
<failure tag="int, string" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(int,123)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(QString,hi)" result="fail"/>
|
|
|
|
<failure tag="null hash, invalid" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QVariantHash)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant()" result="fail"/>
|
|
|
|
<failure tag="string, null user type" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QString,A simple string)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass)" result="fail"/>
|
|
|
|
<failure tag="both non-null user type" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
2011-04-27 10:05:43 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)" result="fail"/>
|
|
|
|
</testcase>
|
2011-12-13 07:26:36 +00:00
|
|
|
<testcase result="fail" name="compareQStringLists">
|
2013-01-19 10:52:03 +00:00
|
|
|
<failure tag="last item different" message="Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
<failure tag="second-last item different" message="Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
|
|
|
Expected (opB): "DIFFERS"" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
<failure tag="prefix" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 2
|
|
|
|
Expected (opB) size: 1" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
<failure tag="short list second" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 12
|
|
|
|
Expected (opB) size: 1" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
<failure tag="short list first" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 1
|
|
|
|
Expected (opB) size: 12" result="fail"/>
|
2011-12-13 07:26:36 +00:00
|
|
|
</testcase>
|
2013-01-19 10:52:03 +00:00
|
|
|
<testcase result="fail" name="compareQListInt">
|
|
|
|
<failure message="Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (int1): 3
|
|
|
|
Expected (int2): 4" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</testcase>
|
|
|
|
<testcase result="fail" name="compareQListDouble">
|
|
|
|
<failure message="Compared lists differ at index 0.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (double1): 1.5
|
|
|
|
Expected (double2): 1" result="fail"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</testcase>
|
2011-12-19 10:33:07 +00:00
|
|
|
<testcase result="fail" name="compareQPixmaps">
|
|
|
|
<failure tag="one null" message="Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0" result="fail"/>
|
|
|
|
<failure tag="other null" message="Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1" result="fail"/>
|
|
|
|
<failure tag="different size" message="Compared QPixmaps differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20" result="fail"/>
|
|
|
|
<failure tag="different pixels" message="Compared values are not the same" result="fail"/>
|
|
|
|
</testcase>
|
|
|
|
<testcase result="fail" name="compareQImages">
|
|
|
|
<failure tag="one null" message="Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 0" result="fail"/>
|
|
|
|
<failure tag="other null" message="Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB).isNull(): 1" result="fail"/>
|
|
|
|
<failure tag="different size" message="Compared QImages differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 20x20" result="fail"/>
|
|
|
|
<failure tag="different format" message="Compared QImages differ in format.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 6
|
2011-12-19 10:33:07 +00:00
|
|
|
Expected (opB): 3" result="fail"/>
|
|
|
|
<failure tag="different pixels" message="Compared values are not the same" result="fail"/>
|
|
|
|
</testcase>
|
2011-04-27 10:05:43 +00:00
|
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
|
|
<system-err/>
|
|
|
|
</testsuite>
|