2011-04-27 10:05:43 +00:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testsuite name="tst_Cmptest" timestamp="@TEST_START_TIME@" tests="28" failures="45" errors="0" time="@TEST_DURATION@">
|
2011-04-27 10:05:43 +00:00
|
|
|
<properties>
|
2020-07-21 23:38:42 +00:00
|
|
|
<property name="QTestVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
|
|
<property name="QtVersion" value="@INSERT_QT_VERSION_HERE@"/>
|
|
|
|
<property name="QtBuild" value=""/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</properties>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="initTestCase" result="pass" time="@TEST_DURATION@"/>
|
|
|
|
<testcase name="compare_unregistered_enums" result="fail" time="@TEST_DURATION@">
|
2020-12-15 12:18:39 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
|
|
|
Actual (MyUnregisteredEnumValue1): 0
|
|
|
|
Expected (MyUnregisteredEnumValue2): 1"/>
|
2015-06-08 10:21:30 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compare_registered_enums" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2015-12-02 01:44:34 +00:00
|
|
|
Actual (Qt::Monday): Monday
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (Qt::Sunday): Sunday"/>
|
2015-06-08 10:21:30 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compare_class_enums" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2015-11-01 15:41:25 +00:00
|
|
|
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2"/>
|
2015-11-01 15:41:25 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="test_windowflags" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2018-01-18 16:10:03 +00:00
|
|
|
Actual (actualWindowFlags) : Window|WindowSystemMenuHint|WindowStaysOnBottomHint
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expectedWindowFlags): Window|FramelessWindowHint|WindowSystemMenuHint|WindowStaysOnBottomHint" tag="fail1"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2018-01-18 16:10:03 +00:00
|
|
|
Actual (actualWindowFlags) : Window
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expectedWindowFlags): Window|FramelessWindowHint" tag="fail2"/>
|
2018-01-18 16:10:03 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="test_unregistered_flags" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2018-01-18 16:10:03 +00:00
|
|
|
Actual (actualFlags) : 0x3
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expectedFlags): 0x5" tag="fail1"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2018-01-18 16:10:03 +00:00
|
|
|
Actual (actualFlags) : 0x1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expectedFlags): 0x5" tag="fail2"/>
|
2018-01-18 16:10:03 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compare_boolfuncs" result="pass" time="@TEST_DURATION@"/>
|
|
|
|
<testcase name="compare_to_nullptr" result="pass" time="@TEST_DURATION@"/>
|
|
|
|
<testcase name="compare_pointerfuncs" result="pass" time="@TEST_DURATION@"/>
|
|
|
|
<testcase name="compare_tostring" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(int,123)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): QVariant(QString,hi)" tag="int, string"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QVariantHash)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): QVariant()" tag="null hash, invalid"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(QString,A simple string)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass)" tag="string, null user type"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2013-07-01 22:58:40 +00:00
|
|
|
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): QVariant(PhonyClass,<value not representable as string>)" tag="both non-null user type"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQStringLists" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): "DIFFERS"" tag="last item different"/>
|
|
|
|
<failure result="fail" message="Compared lists differ at index 2.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA): "string3"
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): "DIFFERS"" tag="second-last item different"/>
|
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 2
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB) size: 1" tag="prefix"/>
|
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 12
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB) size: 1" tag="short list second"/>
|
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (opA) size: 1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB) size: 12" tag="short list first"/>
|
2011-12-13 07:26:36 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQListInt" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual) size: 2
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected) size: 3" tag="size mismatch"/>
|
|
|
|
<failure result="fail" message="Compared lists differ at index 2.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual): 4
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): 3" tag="value mismatch"/>
|
2020-07-10 09:41:33 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQListIntToArray" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual) size: 2
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected) size: 3" tag="size mismatch"/>
|
|
|
|
<failure result="fail" message="Compared lists differ at index 2.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual): 4
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (expected): 3" tag="value mismatch"/>
|
2020-07-10 09:41:33 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQListIntToInitializerList" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared lists have different sizes.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual) size: 2
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (ARG({1, 2, 3})) size: 3" tag="size mismatch"/>
|
|
|
|
<failure result="fail" message="Compared lists differ at index 2.
|
2020-07-10 09:41:33 +00:00
|
|
|
Actual (actual): 4
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (ARG({1, 2, 3})): 3" tag="value mismatch"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQListDouble" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared lists differ at index 0.
|
2014-01-21 00:03:30 +00:00
|
|
|
Actual (double1): 1.5
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (double2): 1"/>
|
2013-01-19 10:52:03 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQColor" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2017-10-03 08:10:46 +00:00
|
|
|
Actual (colorA): #ffffff00
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (colorB): #ff00ff00" tag="Qt::yellow vs Qt::green"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2017-10-03 08:10:46 +00:00
|
|
|
Actual (colorA): #88ff0000
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (colorB): #ffff0000" tag="0x88ff0000 vs 0xffff0000"/>
|
2016-03-17 09:01:55 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQPixmaps" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB).isNull(): 0" tag="one null"/>
|
|
|
|
<failure result="fail" message="Compared QPixmaps differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB).isNull(): 1" tag="other null"/>
|
|
|
|
<failure result="fail" message="Compared QPixmaps differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): 20x20" tag="different size"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same" tag="different pixels"/>
|
|
|
|
<failure result="fail" message="Compared QPixmaps differ in device pixel ratio.
|
2019-05-29 11:18:14 +00:00
|
|
|
Actual (opA): 1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): 2" tag="different dpr"/>
|
2011-12-19 10:33:07 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQImages" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB).isNull(): 0" tag="one null"/>
|
|
|
|
<failure result="fail" message="Compared QImages differ.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA).isNull(): 0
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB).isNull(): 1" tag="other null"/>
|
|
|
|
<failure result="fail" message="Compared QImages differ in size.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 11x20
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): 20x20" tag="different size"/>
|
|
|
|
<failure result="fail" message="Compared QImages differ in format.
|
2012-03-08 01:30:10 +00:00
|
|
|
Actual (opA): 6
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): 3" tag="different format"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same" tag="different pixels"/>
|
|
|
|
<failure result="fail" message="Compared QImages differ in device pixel ratio.
|
2019-05-29 11:18:14 +00:00
|
|
|
Actual (opA): 1
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (opB): 2" tag="different dpr"/>
|
2011-12-19 10:33:07 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQRegion" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2016-07-05 07:41:15 +00:00
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (rB): QRegion(null)" tag="1-empty"/>
|
|
|
|
<failure result="fail" message="Compared values are not the same
|
2016-07-05 07:41:15 +00:00
|
|
|
Actual (rA): QRegion(200x50+10+10)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)" tag="different lists"/>
|
2016-07-05 07:41:15 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQVector2D" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2017-07-31 12:57:02 +00:00
|
|
|
Actual (v2a): QVector2D(1, 2)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (v2b): QVector2D(1, 3)"/>
|
2017-07-31 12:57:02 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQVector3D" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2017-07-31 12:57:02 +00:00
|
|
|
Actual (v3a): QVector3D(1, 2, 3)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (v3b): QVector3D(1, 3, 3)"/>
|
2017-07-31 12:57:02 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="compareQVector4D" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="Compared values are not the same
|
2017-07-31 12:57:02 +00:00
|
|
|
Actual (v4a): QVector4D(1, 2, 3, 4)
|
2020-07-21 23:38:42 +00:00
|
|
|
Expected (v4b): QVector4D(1, 3, 3, 4)"/>
|
2017-07-31 12:57:02 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="verify" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="'opaqueFunc() < 2' returned FALSE. ()"/>
|
2015-07-21 08:55:17 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="verify2" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="'opaqueFunc() < 2' returned FALSE. (42)"/>
|
2015-07-21 08:55:17 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="tryVerify" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="'opaqueFunc() < 2' returned FALSE. ()"/>
|
2015-07-21 08:55:17 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="tryVerify2" result="fail" time="@TEST_DURATION@">
|
2020-07-21 23:38:42 +00:00
|
|
|
<failure result="fail" message="'opaqueFunc() < 2' returned FALSE. (42)"/>
|
2015-07-21 08:55:17 +00:00
|
|
|
</testcase>
|
2020-07-21 10:10:32 +00:00
|
|
|
<testcase name="verifyExplicitOperatorBool" result="pass" time="@TEST_DURATION@"/>
|
|
|
|
<testcase name="cleanupTestCase" result="pass" time="@TEST_DURATION@"/>
|
2011-04-27 10:05:43 +00:00
|
|
|
<system-err/>
|
|
|
|
</testsuite>
|