2011-04-27 10:05:43 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2011-12-19 10:33:07 +00:00
|
|
|
<testsuite errors="0" failures="18" tests="8" 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
|
2012-03-08 01:30:10 +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
|
2012-03-08 01:30:10 +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
|
2012-03-08 01:30:10 +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
|
2012-03-08 01:30:10 +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">
|
2011-12-13 08:02:46 +00:00
|
|
|
<failure tag="last item different" message="Compared QStringLists differ at index 2.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 'string3'
|
|
|
|
Expected (opB): 'DIFFERS'" result="fail"/>
|
2011-12-13 08:02:46 +00:00
|
|
|
<failure tag="second-last item different" message="Compared QStringLists differ at index 2.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 'string3'
|
|
|
|
Expected (opB): 'DIFFERS'" result="fail"/>
|
2011-12-13 08:02:46 +00:00
|
|
|
<failure tag="prefix" message="Compared QStringLists have different sizes.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA) size: '2'
|
2011-12-13 07:26:36 +00:00
|
|
|
Expected (opB) size: '1'" result="fail"/>
|
2011-12-13 08:02:46 +00:00
|
|
|
<failure tag="short list second" message="Compared QStringLists have different sizes.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA) size: '12'
|
2011-12-13 07:26:36 +00:00
|
|
|
Expected (opB) size: '1'" result="fail"/>
|
2011-12-13 08:02:46 +00:00
|
|
|
<failure tag="short list first" message="Compared QStringLists have different sizes.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA) size: '1'
|
2011-12-13 07:26:36 +00:00
|
|
|
Expected (opB) size: '12'" result="fail"/>
|
|
|
|
</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>
|