[prev in list] [next in list] [prev in thread] [next in thread]
List: koffice-devel
Subject: koffice/libs/pigment/tests
From: Cyrille Berger <cyb () lepi ! org>
Date: 2008-07-15 9:53:46
Message-ID: 1216115626.431732.28809.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 832733 by berger:
count the number of conversion without a good path (it should be 0, except in the \
case of lack OpenCTL, but I am waiting for the number of failing conversion, in \
tomorrow's test run)
CCMAIL:koffice-devel@kde.org
M +8 -1 TestColorConversionSystem.cpp
--- trunk/koffice/libs/pigment/tests/TestColorConversionSystem.cpp #832732:832733
@@ -23,6 +23,7 @@
#include <kdebug.h>
+#include <DebugPigment.h>
#include <KoColorProfile.h>
#include <KoColorSpaceRegistry.h>
#include <KoColorConversionSystem.h>
@@ -59,13 +60,19 @@
void TestColorConversionSystem::testGoodConnections()
{
+ int countFail = 0;
foreach( ModelDepthProfile srcCS, listModels)
{
foreach( ModelDepthProfile dstCS, listModels)
{
- QVERIFY2( \
KoColorSpaceRegistry::instance()->colorConversionSystem()->existsGoodPath(srcCS.model, \
srcCS.depth, srcCS.profile , dstCS.model, dstCS.depth, dstCS.profile) , QString("No \
good path between %1 / %2 / %3 and %4 / %5 / \
%6").arg(srcCS.model).arg(srcCS.depth).arg(srcCS.profile).arg(dstCS.model).arg(dstCS.depth).arg(dstCS.profile).latin1() \
); + if(not \
KoColorSpaceRegistry::instance()->colorConversionSystem()->existsGoodPath(srcCS.model, \
srcCS.depth, srcCS.profile , dstCS.model, dstCS.depth, dstCS.profile) ) + \
{ + ++countFail;
+ dbgPigment << "No good path between \"" << srcCS.model << " " << \
srcCS.depth << " " << srcCS.profile << "\" \"" << dstCS.model << " " << dstCS.depth \
<< " " << dstCS.profile <<"\""; + }
}
}
+ QVERIFY2( countFail == 0, QString("%1 tests have fails").arg( \
countFail).latin1() ); }
QTEST_KDEMAIN(TestColorConversionSystem, NoGUI)
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic