Testlib: Format QRegion in QCOMPARE
Output regions as a compact list of rectangles: QRegion(2 rectangles, 50x200+100+200, 200x50+10+10) Change-Id: I62e42bd30897a1d31b28e0cbd6afe7fa8ecf2664 Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
This commit is contained in:
parent
6583720aa4
commit
e7d4760314
@ -58,6 +58,7 @@
|
||||
#include <QtGui/qcolor.h>
|
||||
#include <QtGui/qpixmap.h>
|
||||
#include <QtGui/qimage.h>
|
||||
#include <QtGui/qregion.h>
|
||||
|
||||
#ifdef QT_WIDGETS_LIB
|
||||
#include <QtGui/qicon.h>
|
||||
@ -82,6 +83,39 @@ template<> inline char *toString(const QColor &color)
|
||||
return qstrdup(color.name().toLocal8Bit().constData());
|
||||
}
|
||||
|
||||
template<> inline char *toString(const QRegion ®ion)
|
||||
{
|
||||
QByteArray result = "QRegion(";
|
||||
if (region.isNull()) {
|
||||
result += "null";
|
||||
} else if (region.isEmpty()) {
|
||||
result += "empty";
|
||||
} else {
|
||||
const QVector<QRect> &rects = region.rects();
|
||||
const int rectCount = rects.size();
|
||||
if (rectCount > 1) {
|
||||
result += QByteArray::number(rectCount);
|
||||
result += " rectangles, ";
|
||||
}
|
||||
for (int i = 0; i < rectCount; ++i) {
|
||||
if (i)
|
||||
result += ", ";
|
||||
const QRect &r = rects.at(i);
|
||||
result += QByteArray::number(r.width());
|
||||
result += 'x';
|
||||
result += QByteArray::number(r.height());
|
||||
if (r.x() >= 0)
|
||||
result += '+';
|
||||
result += QByteArray::number(r.x());
|
||||
if (r.y() >= 0)
|
||||
result += '+';
|
||||
result += QByteArray::number(r.y());
|
||||
}
|
||||
}
|
||||
result += ')';
|
||||
return qstrdup(result.constData());
|
||||
}
|
||||
|
||||
inline bool qCompare(QIcon const &t1, QIcon const &t2, const char *actual, const char *expected,
|
||||
const char *file, int line)
|
||||
{
|
||||
|
@ -141,6 +141,8 @@ private slots:
|
||||
void compareQPixmaps_data();
|
||||
void compareQImages();
|
||||
void compareQImages_data();
|
||||
void compareQRegion_data();
|
||||
void compareQRegion();
|
||||
#endif
|
||||
void verify();
|
||||
void verify2();
|
||||
@ -409,6 +411,29 @@ void tst_Cmptest::compareQImages()
|
||||
|
||||
QCOMPARE(opA, opB);
|
||||
}
|
||||
|
||||
void tst_Cmptest::compareQRegion_data()
|
||||
{
|
||||
QTest::addColumn<QRegion>("rA");
|
||||
QTest::addColumn<QRegion>("rB");
|
||||
const QRect rect1(QPoint(10, 10), QSize(200, 50));
|
||||
const QRegion region1(rect1);
|
||||
QRegion listRegion2;
|
||||
const QVector<QRect> list2 = QVector<QRect>() << QRect(QPoint(100, 200), QSize(50, 200)) << rect1;
|
||||
listRegion2.setRects(list2.constData(), list2.size());
|
||||
QTest::newRow("equal-empty") << QRegion() << QRegion();
|
||||
QTest::newRow("1-empty") << region1 << QRegion();
|
||||
QTest::newRow("equal") << region1 << region1;
|
||||
QTest::newRow("different lists") << region1 << listRegion2;
|
||||
}
|
||||
|
||||
void tst_Cmptest::compareQRegion()
|
||||
{
|
||||
QFETCH(QRegion, rA);
|
||||
QFETCH(QRegion, rB);
|
||||
|
||||
QCOMPARE(rA, rB);
|
||||
}
|
||||
#endif // QT_GUI_LIB
|
||||
|
||||
static int opaqueFunc()
|
||||
|
@ -8,13 +8,13 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_unregistered_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="156">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="158">
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_registered_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="162">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="165">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (Qt::Monday): Monday
|
||||
Expected (Qt::Sunday): Sunday]]></Description>
|
||||
@ -22,7 +22,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_class_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="168">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="171">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
||||
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2]]></Description>
|
||||
@ -38,7 +38,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_tostring">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[int, string]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(int,123)
|
||||
@ -47,19 +47,19 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both invalid]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[null hash, invalid]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(QVariantHash)
|
||||
Expected (expected): QVariant()]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[string, null user type]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(QString,A simple string)
|
||||
Expected (expected): QVariant(PhonyClass)]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[both non-null user type]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
||||
@ -74,31 +74,31 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal lists]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[last item different]]></DataTag>
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[second-last item different]]></DataTag>
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[prefix]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 2
|
||||
Expected (opB) size: 1]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[short list second]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 12
|
||||
Expected (opB) size: 1]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[short list first]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 1
|
||||
@ -107,7 +107,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQListInt">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="340">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="343">
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (int1): 3
|
||||
Expected (int2): 4]]></Description>
|
||||
@ -115,7 +115,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQListDouble">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="347">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="350">
|
||||
<Description><![CDATA[Compared lists differ at index 0.
|
||||
Actual (double1): 1.5
|
||||
Expected (double2): 1]]></Description>
|
||||
@ -123,7 +123,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQColor">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="357">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="360">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (yellow): #ffff00
|
||||
Expected (green) : #00ff00]]></Description>
|
||||
@ -134,13 +134,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both null]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[one null]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[other null]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 0
|
||||
@ -149,13 +149,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[different size]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[different pixels]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
@ -165,13 +165,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both null]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[one null]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[other null]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ.
|
||||
Actual (opA).isNull(): 0
|
||||
@ -180,44 +180,65 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different size]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different format]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ in format.
|
||||
Actual (opA): 6
|
||||
Expected (opB): 3]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different pixels]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQRegion">
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal-empty]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="435">
|
||||
<DataTag><![CDATA[1-empty]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(null)]]></Description>
|
||||
</Incident>
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="435">
|
||||
<DataTag><![CDATA[different lists]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="verify">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="421">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="447">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="verify2">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="427">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="453">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="tryVerify">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="433">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="459">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="tryVerify2">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="439">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="465">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
|
@ -2,106 +2,116 @@
|
||||
##teamcity[testStarted name='initTestCase()']
|
||||
##teamcity[testFinished name='initTestCase()']
|
||||
##teamcity[testStarted name='compare_unregistered_enums()']
|
||||
##teamcity[testFailed name='compare_unregistered_enums()' message='Failure! |[Loc: tst_cmptest.cpp(156)|]' details='Compared values are not the same']
|
||||
##teamcity[testFailed name='compare_unregistered_enums()' message='Failure! |[Loc: tst_cmptest.cpp(158)|]' details='Compared values are not the same']
|
||||
##teamcity[testFinished name='compare_unregistered_enums()']
|
||||
##teamcity[testStarted name='compare_registered_enums()']
|
||||
##teamcity[testFailed name='compare_registered_enums()' message='Failure! |[Loc: tst_cmptest.cpp(162)|]' details='Compared values are not the same|n Actual (Qt::Monday): Monday|n Expected (Qt::Sunday): Sunday']
|
||||
##teamcity[testFailed name='compare_registered_enums()' message='Failure! |[Loc: tst_cmptest.cpp(165)|]' details='Compared values are not the same|n Actual (Qt::Monday): Monday|n Expected (Qt::Sunday): Sunday']
|
||||
##teamcity[testFinished name='compare_registered_enums()']
|
||||
##teamcity[testStarted name='compare_class_enums()']
|
||||
##teamcity[testFailed name='compare_class_enums()' message='Failure! |[Loc: tst_cmptest.cpp(168)|]' details='Compared values are not the same|n Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1|n Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2']
|
||||
##teamcity[testFailed name='compare_class_enums()' message='Failure! |[Loc: tst_cmptest.cpp(171)|]' details='Compared values are not the same|n Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1|n Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2']
|
||||
##teamcity[testFinished name='compare_class_enums()']
|
||||
##teamcity[testStarted name='compare_boolfuncs()']
|
||||
##teamcity[testFinished name='compare_boolfuncs()']
|
||||
##teamcity[testStarted name='compare_pointerfuncs()']
|
||||
##teamcity[testFinished name='compare_pointerfuncs()']
|
||||
##teamcity[testStarted name='compare_tostring(int, string)']
|
||||
##teamcity[testFailed name='compare_tostring(int, string)' message='Failure! |[Loc: tst_cmptest.cpp(239)|]' details='Compared values are not the same|n Actual (actual) : QVariant(int,123)|n Expected (expected): QVariant(QString,hi)']
|
||||
##teamcity[testFailed name='compare_tostring(int, string)' message='Failure! |[Loc: tst_cmptest.cpp(242)|]' details='Compared values are not the same|n Actual (actual) : QVariant(int,123)|n Expected (expected): QVariant(QString,hi)']
|
||||
##teamcity[testFinished name='compare_tostring(int, string)']
|
||||
##teamcity[testStarted name='compare_tostring(both invalid)']
|
||||
##teamcity[testFinished name='compare_tostring(both invalid)']
|
||||
##teamcity[testStarted name='compare_tostring(null hash, invalid)']
|
||||
##teamcity[testFailed name='compare_tostring(null hash, invalid)' message='Failure! |[Loc: tst_cmptest.cpp(239)|]' details='Compared values are not the same|n Actual (actual) : QVariant(QVariantHash)|n Expected (expected): QVariant()']
|
||||
##teamcity[testFailed name='compare_tostring(null hash, invalid)' message='Failure! |[Loc: tst_cmptest.cpp(242)|]' details='Compared values are not the same|n Actual (actual) : QVariant(QVariantHash)|n Expected (expected): QVariant()']
|
||||
##teamcity[testFinished name='compare_tostring(null hash, invalid)']
|
||||
##teamcity[testStarted name='compare_tostring(string, null user type)']
|
||||
##teamcity[testFailed name='compare_tostring(string, null user type)' message='Failure! |[Loc: tst_cmptest.cpp(239)|]' details='Compared values are not the same|n Actual (actual) : QVariant(QString,A simple string)|n Expected (expected): QVariant(PhonyClass)']
|
||||
##teamcity[testFailed name='compare_tostring(string, null user type)' message='Failure! |[Loc: tst_cmptest.cpp(242)|]' details='Compared values are not the same|n Actual (actual) : QVariant(QString,A simple string)|n Expected (expected): QVariant(PhonyClass)']
|
||||
##teamcity[testFinished name='compare_tostring(string, null user type)']
|
||||
##teamcity[testStarted name='compare_tostring(both non-null user type)']
|
||||
##teamcity[testFailed name='compare_tostring(both non-null user type)' message='Failure! |[Loc: tst_cmptest.cpp(239)|]' details='Compared values are not the same|n Actual (actual) : QVariant(PhonyClass,<value not representable as string>)|n Expected (expected): QVariant(PhonyClass,<value not representable as string>)']
|
||||
##teamcity[testFailed name='compare_tostring(both non-null user type)' message='Failure! |[Loc: tst_cmptest.cpp(242)|]' details='Compared values are not the same|n Actual (actual) : QVariant(PhonyClass,<value not representable as string>)|n Expected (expected): QVariant(PhonyClass,<value not representable as string>)']
|
||||
##teamcity[testFinished name='compare_tostring(both non-null user type)']
|
||||
##teamcity[testStarted name='compareQStringLists(empty lists)']
|
||||
##teamcity[testFinished name='compareQStringLists(empty lists)']
|
||||
##teamcity[testStarted name='compareQStringLists(equal lists)']
|
||||
##teamcity[testFinished name='compareQStringLists(equal lists)']
|
||||
##teamcity[testStarted name='compareQStringLists(last item different)']
|
||||
##teamcity[testFailed name='compareQStringLists(last item different)' message='Failure! |[Loc: tst_cmptest.cpp(333)|]' details='Compared lists differ at index 2.|n Actual (opA): "string3"|n Expected (opB): "DIFFERS"']
|
||||
##teamcity[testFailed name='compareQStringLists(last item different)' message='Failure! |[Loc: tst_cmptest.cpp(336)|]' details='Compared lists differ at index 2.|n Actual (opA): "string3"|n Expected (opB): "DIFFERS"']
|
||||
##teamcity[testFinished name='compareQStringLists(last item different)']
|
||||
##teamcity[testStarted name='compareQStringLists(second-last item different)']
|
||||
##teamcity[testFailed name='compareQStringLists(second-last item different)' message='Failure! |[Loc: tst_cmptest.cpp(333)|]' details='Compared lists differ at index 2.|n Actual (opA): "string3"|n Expected (opB): "DIFFERS"']
|
||||
##teamcity[testFailed name='compareQStringLists(second-last item different)' message='Failure! |[Loc: tst_cmptest.cpp(336)|]' details='Compared lists differ at index 2.|n Actual (opA): "string3"|n Expected (opB): "DIFFERS"']
|
||||
##teamcity[testFinished name='compareQStringLists(second-last item different)']
|
||||
##teamcity[testStarted name='compareQStringLists(prefix)']
|
||||
##teamcity[testFailed name='compareQStringLists(prefix)' message='Failure! |[Loc: tst_cmptest.cpp(333)|]' details='Compared lists have different sizes.|n Actual (opA) size: 2|n Expected (opB) size: 1']
|
||||
##teamcity[testFailed name='compareQStringLists(prefix)' message='Failure! |[Loc: tst_cmptest.cpp(336)|]' details='Compared lists have different sizes.|n Actual (opA) size: 2|n Expected (opB) size: 1']
|
||||
##teamcity[testFinished name='compareQStringLists(prefix)']
|
||||
##teamcity[testStarted name='compareQStringLists(short list second)']
|
||||
##teamcity[testFailed name='compareQStringLists(short list second)' message='Failure! |[Loc: tst_cmptest.cpp(333)|]' details='Compared lists have different sizes.|n Actual (opA) size: 12|n Expected (opB) size: 1']
|
||||
##teamcity[testFailed name='compareQStringLists(short list second)' message='Failure! |[Loc: tst_cmptest.cpp(336)|]' details='Compared lists have different sizes.|n Actual (opA) size: 12|n Expected (opB) size: 1']
|
||||
##teamcity[testFinished name='compareQStringLists(short list second)']
|
||||
##teamcity[testStarted name='compareQStringLists(short list first)']
|
||||
##teamcity[testFailed name='compareQStringLists(short list first)' message='Failure! |[Loc: tst_cmptest.cpp(333)|]' details='Compared lists have different sizes.|n Actual (opA) size: 1|n Expected (opB) size: 12']
|
||||
##teamcity[testFailed name='compareQStringLists(short list first)' message='Failure! |[Loc: tst_cmptest.cpp(336)|]' details='Compared lists have different sizes.|n Actual (opA) size: 1|n Expected (opB) size: 12']
|
||||
##teamcity[testFinished name='compareQStringLists(short list first)']
|
||||
##teamcity[testStarted name='compareQListInt()']
|
||||
##teamcity[testFailed name='compareQListInt()' message='Failure! |[Loc: tst_cmptest.cpp(340)|]' details='Compared lists differ at index 2.|n Actual (int1): 3|n Expected (int2): 4']
|
||||
##teamcity[testFailed name='compareQListInt()' message='Failure! |[Loc: tst_cmptest.cpp(343)|]' details='Compared lists differ at index 2.|n Actual (int1): 3|n Expected (int2): 4']
|
||||
##teamcity[testFinished name='compareQListInt()']
|
||||
##teamcity[testStarted name='compareQListDouble()']
|
||||
##teamcity[testFailed name='compareQListDouble()' message='Failure! |[Loc: tst_cmptest.cpp(347)|]' details='Compared lists differ at index 0.|n Actual (double1): 1.5|n Expected (double2): 1']
|
||||
##teamcity[testFailed name='compareQListDouble()' message='Failure! |[Loc: tst_cmptest.cpp(350)|]' details='Compared lists differ at index 0.|n Actual (double1): 1.5|n Expected (double2): 1']
|
||||
##teamcity[testFinished name='compareQListDouble()']
|
||||
##teamcity[testStarted name='compareQColor()']
|
||||
##teamcity[testFailed name='compareQColor()' message='Failure! |[Loc: tst_cmptest.cpp(357)|]' details='Compared values are not the same|n Actual (yellow): #ffff00|n Expected (green) : #00ff00']
|
||||
##teamcity[testFailed name='compareQColor()' message='Failure! |[Loc: tst_cmptest.cpp(360)|]' details='Compared values are not the same|n Actual (yellow): #ffff00|n Expected (green) : #00ff00']
|
||||
##teamcity[testFinished name='compareQColor()']
|
||||
##teamcity[testStarted name='compareQPixmaps(both null)']
|
||||
##teamcity[testFinished name='compareQPixmaps(both null)']
|
||||
##teamcity[testStarted name='compareQPixmaps(one null)']
|
||||
##teamcity[testFailed name='compareQPixmaps(one null)' message='Failure! |[Loc: tst_cmptest.cpp(382)|]' details='Compared QPixmaps differ.|n Actual (opA).isNull(): 1|n Expected (opB).isNull(): 0']
|
||||
##teamcity[testFailed name='compareQPixmaps(one null)' message='Failure! |[Loc: tst_cmptest.cpp(385)|]' details='Compared QPixmaps differ.|n Actual (opA).isNull(): 1|n Expected (opB).isNull(): 0']
|
||||
##teamcity[testFinished name='compareQPixmaps(one null)']
|
||||
##teamcity[testStarted name='compareQPixmaps(other null)']
|
||||
##teamcity[testFailed name='compareQPixmaps(other null)' message='Failure! |[Loc: tst_cmptest.cpp(382)|]' details='Compared QPixmaps differ.|n Actual (opA).isNull(): 0|n Expected (opB).isNull(): 1']
|
||||
##teamcity[testFailed name='compareQPixmaps(other null)' message='Failure! |[Loc: tst_cmptest.cpp(385)|]' details='Compared QPixmaps differ.|n Actual (opA).isNull(): 0|n Expected (opB).isNull(): 1']
|
||||
##teamcity[testFinished name='compareQPixmaps(other null)']
|
||||
##teamcity[testStarted name='compareQPixmaps(equal)']
|
||||
##teamcity[testFinished name='compareQPixmaps(equal)']
|
||||
##teamcity[testStarted name='compareQPixmaps(different size)']
|
||||
##teamcity[testFailed name='compareQPixmaps(different size)' message='Failure! |[Loc: tst_cmptest.cpp(382)|]' details='Compared QPixmaps differ in size.|n Actual (opA): 11x20|n Expected (opB): 20x20']
|
||||
##teamcity[testFailed name='compareQPixmaps(different size)' message='Failure! |[Loc: tst_cmptest.cpp(385)|]' details='Compared QPixmaps differ in size.|n Actual (opA): 11x20|n Expected (opB): 20x20']
|
||||
##teamcity[testFinished name='compareQPixmaps(different size)']
|
||||
##teamcity[testStarted name='compareQPixmaps(different pixels)']
|
||||
##teamcity[testFailed name='compareQPixmaps(different pixels)' message='Failure! |[Loc: tst_cmptest.cpp(382)|]' details='Compared values are not the same']
|
||||
##teamcity[testFailed name='compareQPixmaps(different pixels)' message='Failure! |[Loc: tst_cmptest.cpp(385)|]' details='Compared values are not the same']
|
||||
##teamcity[testFinished name='compareQPixmaps(different pixels)']
|
||||
##teamcity[testStarted name='compareQImages(both null)']
|
||||
##teamcity[testFinished name='compareQImages(both null)']
|
||||
##teamcity[testStarted name='compareQImages(one null)']
|
||||
##teamcity[testFailed name='compareQImages(one null)' message='Failure! |[Loc: tst_cmptest.cpp(409)|]' details='Compared QImages differ.|n Actual (opA).isNull(): 1|n Expected (opB).isNull(): 0']
|
||||
##teamcity[testFailed name='compareQImages(one null)' message='Failure! |[Loc: tst_cmptest.cpp(412)|]' details='Compared QImages differ.|n Actual (opA).isNull(): 1|n Expected (opB).isNull(): 0']
|
||||
##teamcity[testFinished name='compareQImages(one null)']
|
||||
##teamcity[testStarted name='compareQImages(other null)']
|
||||
##teamcity[testFailed name='compareQImages(other null)' message='Failure! |[Loc: tst_cmptest.cpp(409)|]' details='Compared QImages differ.|n Actual (opA).isNull(): 0|n Expected (opB).isNull(): 1']
|
||||
##teamcity[testFailed name='compareQImages(other null)' message='Failure! |[Loc: tst_cmptest.cpp(412)|]' details='Compared QImages differ.|n Actual (opA).isNull(): 0|n Expected (opB).isNull(): 1']
|
||||
##teamcity[testFinished name='compareQImages(other null)']
|
||||
##teamcity[testStarted name='compareQImages(equal)']
|
||||
##teamcity[testFinished name='compareQImages(equal)']
|
||||
##teamcity[testStarted name='compareQImages(different size)']
|
||||
##teamcity[testFailed name='compareQImages(different size)' message='Failure! |[Loc: tst_cmptest.cpp(409)|]' details='Compared QImages differ in size.|n Actual (opA): 11x20|n Expected (opB): 20x20']
|
||||
##teamcity[testFailed name='compareQImages(different size)' message='Failure! |[Loc: tst_cmptest.cpp(412)|]' details='Compared QImages differ in size.|n Actual (opA): 11x20|n Expected (opB): 20x20']
|
||||
##teamcity[testFinished name='compareQImages(different size)']
|
||||
##teamcity[testStarted name='compareQImages(different format)']
|
||||
##teamcity[testFailed name='compareQImages(different format)' message='Failure! |[Loc: tst_cmptest.cpp(409)|]' details='Compared QImages differ in format.|n Actual (opA): 6|n Expected (opB): 3']
|
||||
##teamcity[testFailed name='compareQImages(different format)' message='Failure! |[Loc: tst_cmptest.cpp(412)|]' details='Compared QImages differ in format.|n Actual (opA): 6|n Expected (opB): 3']
|
||||
##teamcity[testFinished name='compareQImages(different format)']
|
||||
##teamcity[testStarted name='compareQImages(different pixels)']
|
||||
##teamcity[testFailed name='compareQImages(different pixels)' message='Failure! |[Loc: tst_cmptest.cpp(409)|]' details='Compared values are not the same']
|
||||
##teamcity[testFailed name='compareQImages(different pixels)' message='Failure! |[Loc: tst_cmptest.cpp(412)|]' details='Compared values are not the same']
|
||||
##teamcity[testFinished name='compareQImages(different pixels)']
|
||||
##teamcity[testStarted name='compareQRegion(equal-empty)']
|
||||
##teamcity[testFinished name='compareQRegion(equal-empty)']
|
||||
##teamcity[testStarted name='compareQRegion(1-empty)']
|
||||
##teamcity[testFailed name='compareQRegion(1-empty)' message='Failure! |[Loc: tst_cmptest.cpp(435)|]' details='Compared values are not the same|n Actual (rA): QRegion(200x50+10+10)|n Expected (rB): QRegion(null)']
|
||||
##teamcity[testFinished name='compareQRegion(1-empty)']
|
||||
##teamcity[testStarted name='compareQRegion(equal)']
|
||||
##teamcity[testFinished name='compareQRegion(equal)']
|
||||
##teamcity[testStarted name='compareQRegion(different lists)']
|
||||
##teamcity[testFailed name='compareQRegion(different lists)' message='Failure! |[Loc: tst_cmptest.cpp(435)|]' details='Compared values are not the same|n Actual (rA): QRegion(200x50+10+10)|n Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)']
|
||||
##teamcity[testFinished name='compareQRegion(different lists)']
|
||||
##teamcity[testStarted name='verify()']
|
||||
##teamcity[testFailed name='verify()' message='Failure! |[Loc: tst_cmptest.cpp(421)|]' details='|'opaqueFunc() < 2|' returned FALSE. ()']
|
||||
##teamcity[testFailed name='verify()' message='Failure! |[Loc: tst_cmptest.cpp(447)|]' details='|'opaqueFunc() < 2|' returned FALSE. ()']
|
||||
##teamcity[testFinished name='verify()']
|
||||
##teamcity[testStarted name='verify2()']
|
||||
##teamcity[testFailed name='verify2()' message='Failure! |[Loc: tst_cmptest.cpp(427)|]' details='|'opaqueFunc() < 2|' returned FALSE. (42)']
|
||||
##teamcity[testFailed name='verify2()' message='Failure! |[Loc: tst_cmptest.cpp(453)|]' details='|'opaqueFunc() < 2|' returned FALSE. (42)']
|
||||
##teamcity[testFinished name='verify2()']
|
||||
##teamcity[testStarted name='tryVerify()']
|
||||
##teamcity[testFailed name='tryVerify()' message='Failure! |[Loc: tst_cmptest.cpp(433)|]' details='|'opaqueFunc() < 2|' returned FALSE. ()']
|
||||
##teamcity[testFailed name='tryVerify()' message='Failure! |[Loc: tst_cmptest.cpp(459)|]' details='|'opaqueFunc() < 2|' returned FALSE. ()']
|
||||
##teamcity[testFinished name='tryVerify()']
|
||||
##teamcity[testStarted name='tryVerify2()']
|
||||
##teamcity[testFailed name='tryVerify2()' message='Failure! |[Loc: tst_cmptest.cpp(439)|]' details='|'opaqueFunc() < 2|' returned FALSE. (42)']
|
||||
##teamcity[testFailed name='tryVerify2()' message='Failure! |[Loc: tst_cmptest.cpp(465)|]' details='|'opaqueFunc() < 2|' returned FALSE. (42)']
|
||||
##teamcity[testFinished name='tryVerify2()']
|
||||
##teamcity[testStarted name='cleanupTestCase()']
|
||||
##teamcity[testFinished name='cleanupTestCase()']
|
||||
|
@ -2,112 +2,122 @@
|
||||
Config: Using QtTest library
|
||||
PASS : tst_Cmptest::initTestCase()
|
||||
FAIL! : tst_Cmptest::compare_unregistered_enums() Compared values are not the same
|
||||
Loc: [tst_cmptest.cpp(156)]
|
||||
Loc: [tst_cmptest.cpp(158)]
|
||||
FAIL! : tst_Cmptest::compare_registered_enums() Compared values are not the same
|
||||
Actual (Qt::Monday): Monday
|
||||
Expected (Qt::Sunday): Sunday
|
||||
Loc: [tst_cmptest.cpp(162)]
|
||||
Loc: [tst_cmptest.cpp(165)]
|
||||
FAIL! : tst_Cmptest::compare_class_enums() Compared values are not the same
|
||||
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
||||
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2
|
||||
Loc: [tst_cmptest.cpp(168)]
|
||||
Loc: [tst_cmptest.cpp(171)]
|
||||
PASS : tst_Cmptest::compare_boolfuncs()
|
||||
PASS : tst_Cmptest::compare_pointerfuncs()
|
||||
FAIL! : tst_Cmptest::compare_tostring(int, string) Compared values are not the same
|
||||
Actual (actual) : QVariant(int,123)
|
||||
Expected (expected): QVariant(QString,hi)
|
||||
Loc: [tst_cmptest.cpp(239)]
|
||||
Loc: [tst_cmptest.cpp(242)]
|
||||
PASS : tst_Cmptest::compare_tostring(both invalid)
|
||||
FAIL! : tst_Cmptest::compare_tostring(null hash, invalid) Compared values are not the same
|
||||
Actual (actual) : QVariant(QVariantHash)
|
||||
Expected (expected): QVariant()
|
||||
Loc: [tst_cmptest.cpp(239)]
|
||||
Loc: [tst_cmptest.cpp(242)]
|
||||
FAIL! : tst_Cmptest::compare_tostring(string, null user type) Compared values are not the same
|
||||
Actual (actual) : QVariant(QString,A simple string)
|
||||
Expected (expected): QVariant(PhonyClass)
|
||||
Loc: [tst_cmptest.cpp(239)]
|
||||
Loc: [tst_cmptest.cpp(242)]
|
||||
FAIL! : tst_Cmptest::compare_tostring(both non-null user type) Compared values are not the same
|
||||
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
||||
Expected (expected): QVariant(PhonyClass,<value not representable as string>)
|
||||
Loc: [tst_cmptest.cpp(239)]
|
||||
Loc: [tst_cmptest.cpp(242)]
|
||||
PASS : tst_Cmptest::compareQStringLists(empty lists)
|
||||
PASS : tst_Cmptest::compareQStringLists(equal lists)
|
||||
FAIL! : tst_Cmptest::compareQStringLists(last item different) Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"
|
||||
Loc: [tst_cmptest.cpp(333)]
|
||||
Loc: [tst_cmptest.cpp(336)]
|
||||
FAIL! : tst_Cmptest::compareQStringLists(second-last item different) Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"
|
||||
Loc: [tst_cmptest.cpp(333)]
|
||||
Loc: [tst_cmptest.cpp(336)]
|
||||
FAIL! : tst_Cmptest::compareQStringLists(prefix) Compared lists have different sizes.
|
||||
Actual (opA) size: 2
|
||||
Expected (opB) size: 1
|
||||
Loc: [tst_cmptest.cpp(333)]
|
||||
Loc: [tst_cmptest.cpp(336)]
|
||||
FAIL! : tst_Cmptest::compareQStringLists(short list second) Compared lists have different sizes.
|
||||
Actual (opA) size: 12
|
||||
Expected (opB) size: 1
|
||||
Loc: [tst_cmptest.cpp(333)]
|
||||
Loc: [tst_cmptest.cpp(336)]
|
||||
FAIL! : tst_Cmptest::compareQStringLists(short list first) Compared lists have different sizes.
|
||||
Actual (opA) size: 1
|
||||
Expected (opB) size: 12
|
||||
Loc: [tst_cmptest.cpp(333)]
|
||||
Loc: [tst_cmptest.cpp(336)]
|
||||
FAIL! : tst_Cmptest::compareQListInt() Compared lists differ at index 2.
|
||||
Actual (int1): 3
|
||||
Expected (int2): 4
|
||||
Loc: [tst_cmptest.cpp(340)]
|
||||
Loc: [tst_cmptest.cpp(343)]
|
||||
FAIL! : tst_Cmptest::compareQListDouble() Compared lists differ at index 0.
|
||||
Actual (double1): 1.5
|
||||
Expected (double2): 1
|
||||
Loc: [tst_cmptest.cpp(347)]
|
||||
Loc: [tst_cmptest.cpp(350)]
|
||||
FAIL! : tst_Cmptest::compareQColor() Compared values are not the same
|
||||
Actual (yellow): #ffff00
|
||||
Expected (green) : #00ff00
|
||||
Loc: [tst_cmptest.cpp(357)]
|
||||
Loc: [tst_cmptest.cpp(360)]
|
||||
PASS : tst_Cmptest::compareQPixmaps(both null)
|
||||
FAIL! : tst_Cmptest::compareQPixmaps(one null) Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0
|
||||
Loc: [tst_cmptest.cpp(382)]
|
||||
Loc: [tst_cmptest.cpp(385)]
|
||||
FAIL! : tst_Cmptest::compareQPixmaps(other null) Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 0
|
||||
Expected (opB).isNull(): 1
|
||||
Loc: [tst_cmptest.cpp(382)]
|
||||
Loc: [tst_cmptest.cpp(385)]
|
||||
PASS : tst_Cmptest::compareQPixmaps(equal)
|
||||
FAIL! : tst_Cmptest::compareQPixmaps(different size) Compared QPixmaps differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20
|
||||
Loc: [tst_cmptest.cpp(382)]
|
||||
Loc: [tst_cmptest.cpp(385)]
|
||||
FAIL! : tst_Cmptest::compareQPixmaps(different pixels) Compared values are not the same
|
||||
Loc: [tst_cmptest.cpp(382)]
|
||||
Loc: [tst_cmptest.cpp(385)]
|
||||
PASS : tst_Cmptest::compareQImages(both null)
|
||||
FAIL! : tst_Cmptest::compareQImages(one null) Compared QImages differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0
|
||||
Loc: [tst_cmptest.cpp(409)]
|
||||
Loc: [tst_cmptest.cpp(412)]
|
||||
FAIL! : tst_Cmptest::compareQImages(other null) Compared QImages differ.
|
||||
Actual (opA).isNull(): 0
|
||||
Expected (opB).isNull(): 1
|
||||
Loc: [tst_cmptest.cpp(409)]
|
||||
Loc: [tst_cmptest.cpp(412)]
|
||||
PASS : tst_Cmptest::compareQImages(equal)
|
||||
FAIL! : tst_Cmptest::compareQImages(different size) Compared QImages differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20
|
||||
Loc: [tst_cmptest.cpp(409)]
|
||||
Loc: [tst_cmptest.cpp(412)]
|
||||
FAIL! : tst_Cmptest::compareQImages(different format) Compared QImages differ in format.
|
||||
Actual (opA): 6
|
||||
Expected (opB): 3
|
||||
Loc: [tst_cmptest.cpp(409)]
|
||||
Loc: [tst_cmptest.cpp(412)]
|
||||
FAIL! : tst_Cmptest::compareQImages(different pixels) Compared values are not the same
|
||||
Loc: [tst_cmptest.cpp(409)]
|
||||
Loc: [tst_cmptest.cpp(412)]
|
||||
PASS : tst_Cmptest::compareQRegion(equal-empty)
|
||||
FAIL! : tst_Cmptest::compareQRegion(1-empty) Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(null)
|
||||
Loc: [tst_cmptest.cpp(435)]
|
||||
PASS : tst_Cmptest::compareQRegion(equal)
|
||||
FAIL! : tst_Cmptest::compareQRegion(different lists) Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)
|
||||
Loc: [tst_cmptest.cpp(435)]
|
||||
FAIL! : tst_Cmptest::verify() 'opaqueFunc() < 2' returned FALSE. ()
|
||||
Loc: [tst_cmptest.cpp(421)]
|
||||
Loc: [tst_cmptest.cpp(447)]
|
||||
FAIL! : tst_Cmptest::verify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
||||
Loc: [tst_cmptest.cpp(427)]
|
||||
Loc: [tst_cmptest.cpp(453)]
|
||||
FAIL! : tst_Cmptest::tryVerify() 'opaqueFunc() < 2' returned FALSE. ()
|
||||
Loc: [tst_cmptest.cpp(433)]
|
||||
Loc: [tst_cmptest.cpp(459)]
|
||||
FAIL! : tst_Cmptest::tryVerify2() 'opaqueFunc() < 2' returned FALSE. (42)
|
||||
Loc: [tst_cmptest.cpp(439)]
|
||||
Loc: [tst_cmptest.cpp(465)]
|
||||
PASS : tst_Cmptest::cleanupTestCase()
|
||||
Totals: 11 passed, 28 failed, 0 skipped, 0 blacklisted, 247ms
|
||||
Totals: 13 passed, 30 failed, 0 skipped, 0 blacklisted, 246ms
|
||||
********* Finished testing of tst_Cmptest *********
|
||||
|
@ -10,13 +10,13 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_unregistered_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="156">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="158">
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_registered_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="162">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="165">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (Qt::Monday): Monday
|
||||
Expected (Qt::Sunday): Sunday]]></Description>
|
||||
@ -24,7 +24,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_class_enums">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="168">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="171">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (MyClassEnum::MyClassEnumValue1): MyClassEnumValue1
|
||||
Expected (MyClassEnum::MyClassEnumValue2): MyClassEnumValue2]]></Description>
|
||||
@ -40,7 +40,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compare_tostring">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[int, string]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(int,123)
|
||||
@ -49,19 +49,19 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both invalid]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[null hash, invalid]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(QVariantHash)
|
||||
Expected (expected): QVariant()]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[string, null user type]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(QString,A simple string)
|
||||
Expected (expected): QVariant(PhonyClass)]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="239">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="242">
|
||||
<DataTag><![CDATA[both non-null user type]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (actual) : QVariant(PhonyClass,<value not representable as string>)
|
||||
@ -76,31 +76,31 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal lists]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[last item different]]></DataTag>
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[second-last item different]]></DataTag>
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (opA): "string3"
|
||||
Expected (opB): "DIFFERS"]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[prefix]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 2
|
||||
Expected (opB) size: 1]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[short list second]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 12
|
||||
Expected (opB) size: 1]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="333">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="336">
|
||||
<DataTag><![CDATA[short list first]]></DataTag>
|
||||
<Description><![CDATA[Compared lists have different sizes.
|
||||
Actual (opA) size: 1
|
||||
@ -109,7 +109,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQListInt">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="340">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="343">
|
||||
<Description><![CDATA[Compared lists differ at index 2.
|
||||
Actual (int1): 3
|
||||
Expected (int2): 4]]></Description>
|
||||
@ -117,7 +117,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQListDouble">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="347">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="350">
|
||||
<Description><![CDATA[Compared lists differ at index 0.
|
||||
Actual (double1): 1.5
|
||||
Expected (double2): 1]]></Description>
|
||||
@ -125,7 +125,7 @@
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQColor">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="357">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="360">
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (yellow): #ffff00
|
||||
Expected (green) : #00ff00]]></Description>
|
||||
@ -136,13 +136,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both null]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[one null]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[other null]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ.
|
||||
Actual (opA).isNull(): 0
|
||||
@ -151,13 +151,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[different size]]></DataTag>
|
||||
<Description><![CDATA[Compared QPixmaps differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="382">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="385">
|
||||
<DataTag><![CDATA[different pixels]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
@ -167,13 +167,13 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[both null]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[one null]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ.
|
||||
Actual (opA).isNull(): 1
|
||||
Expected (opB).isNull(): 0]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[other null]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ.
|
||||
Actual (opA).isNull(): 0
|
||||
@ -182,44 +182,65 @@
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different size]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ in size.
|
||||
Actual (opA): 11x20
|
||||
Expected (opB): 20x20]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different format]]></DataTag>
|
||||
<Description><![CDATA[Compared QImages differ in format.
|
||||
Actual (opA): 6
|
||||
Expected (opB): 3]]></Description>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="409">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="412">
|
||||
<DataTag><![CDATA[different pixels]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="compareQRegion">
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal-empty]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="435">
|
||||
<DataTag><![CDATA[1-empty]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(null)]]></Description>
|
||||
</Incident>
|
||||
<Incident type="pass" file="" line="0">
|
||||
<DataTag><![CDATA[equal]]></DataTag>
|
||||
</Incident>
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="435">
|
||||
<DataTag><![CDATA[different lists]]></DataTag>
|
||||
<Description><![CDATA[Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="verify">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="421">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="447">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="verify2">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="427">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="453">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="tryVerify">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="433">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="459">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. ()]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
</TestFunction>
|
||||
<TestFunction name="tryVerify2">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="439">
|
||||
<Incident type="fail" file="tst_cmptest.cpp" line="465">
|
||||
<Description><![CDATA['opaqueFunc() < 2' returned FALSE. (42)]]></Description>
|
||||
</Incident>
|
||||
<Duration msecs="0"/>
|
||||
|
@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
<testsuite errors="0" failures="28" tests="18" name="tst_Cmptest">
|
||||
<testsuite errors="0" failures="30" tests="19" name="tst_Cmptest">
|
||||
<properties>
|
||||
<property value="@INSERT_QT_VERSION_HERE@" name="QTestVersion"/>
|
||||
<property value="@INSERT_QT_VERSION_HERE@" name="QtVersion"/>
|
||||
@ -94,6 +94,14 @@
|
||||
Expected (opB): 3" result="fail"/>
|
||||
<failure tag="different pixels" message="Compared values are not the same" result="fail"/>
|
||||
</testcase>
|
||||
<testcase result="fail" name="compareQRegion">
|
||||
<failure tag="1-empty" message="Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(null)" result="fail"/>
|
||||
<failure tag="different lists" message="Compared values are not the same
|
||||
Actual (rA): QRegion(200x50+10+10)
|
||||
Expected (rB): QRegion(2 rectangles, 50x200+100+200, 200x50+10+10)" result="fail"/>
|
||||
</testcase>
|
||||
<testcase result="fail" name="verify">
|
||||
<failure message="'opaqueFunc() < 2' returned FALSE. ()" result="fail"/>
|
||||
</testcase>
|
||||
|
Loading…
Reference in New Issue
Block a user