a4c0109e01
Make the various versions of the failure message align consistently so that it's a little easier to compare the actual and expected values. Of course, the value won't align nicely unless the "actual" and "expected" strings are the same length, but at least this commit makes that consistent across all versions of the message. Change-Id: If9ce231df3b5d279a06f6458fdb5da0aa4586068 Reviewed-by: Rohan McGovern <rohan.mcgovern@nokia.com>
71 lines
3.6 KiB
XML
71 lines
3.6 KiB
XML
<?xml version="1.0" encoding="UTF-8" ?>
|
|
<testsuite errors="0" failures="18" tests="8" name="tst_Cmptest">
|
|
<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
|
|
Actual (actual): QVariant(int,123)
|
|
Expected (expected): QVariant(QString,hi)" result="fail"/>
|
|
<failure tag="null hash, invalid" message="Compared values are not the same
|
|
Actual (actual): QVariant(QVariantHash)
|
|
Expected (expected): QVariant()" result="fail"/>
|
|
<failure tag="string, null user type" message="Compared values are not the same
|
|
Actual (actual): QVariant(QString,A simple string)
|
|
Expected (expected): QVariant(PhonyClass)" result="fail"/>
|
|
<failure tag="both non-null user type" message="Compared values are not the same
|
|
Actual (actual): QVariant(PhonyClass,<value not representable as string>)
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="compareQStringLists">
|
|
<failure tag="last item different" message="Compared QStringLists differ at index 2.
|
|
Actual (opA): 'string3'
|
|
Expected (opB): 'DIFFERS'" result="fail"/>
|
|
<failure tag="second-last item different" message="Compared QStringLists differ at index 2.
|
|
Actual (opA): 'string3'
|
|
Expected (opB): 'DIFFERS'" result="fail"/>
|
|
<failure tag="prefix" message="Compared QStringLists have different sizes.
|
|
Actual (opA) size: '2'
|
|
Expected (opB) size: '1'" result="fail"/>
|
|
<failure tag="short list second" message="Compared QStringLists have different sizes.
|
|
Actual (opA) size: '12'
|
|
Expected (opB) size: '1'" result="fail"/>
|
|
<failure tag="short list first" message="Compared QStringLists have different sizes.
|
|
Actual (opA) size: '1'
|
|
Expected (opB) size: '12'" result="fail"/>
|
|
</testcase>
|
|
<testcase result="fail" name="compareQPixmaps">
|
|
<failure tag="one null" message="Compared QPixmaps differ.
|
|
Actual (opA).isNull(): 1
|
|
Expected (opB).isNull(): 0" result="fail"/>
|
|
<failure tag="other null" message="Compared QPixmaps differ.
|
|
Actual (opA).isNull(): 0
|
|
Expected (opB).isNull(): 1" result="fail"/>
|
|
<failure tag="different size" message="Compared QPixmaps differ in size.
|
|
Actual (opA): 11x20
|
|
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.
|
|
Actual (opA).isNull(): 1
|
|
Expected (opB).isNull(): 0" result="fail"/>
|
|
<failure tag="other null" message="Compared QImages differ.
|
|
Actual (opA).isNull(): 0
|
|
Expected (opB).isNull(): 1" result="fail"/>
|
|
<failure tag="different size" message="Compared QImages differ in size.
|
|
Actual (opA): 11x20
|
|
Expected (opB): 20x20" result="fail"/>
|
|
<failure tag="different format" message="Compared QImages differ in format.
|
|
Actual (opA): 6
|
|
Expected (opB): 3" result="fail"/>
|
|
<failure tag="different pixels" message="Compared values are not the same" result="fail"/>
|
|
</testcase>
|
|
<testcase result="pass" name="cleanupTestCase"/>
|
|
<system-err/>
|
|
</testsuite>
|