summaryrefslogtreecommitdiffstats
path: root/tests/arthur/baselineserver
diff options
context:
space:
mode:
authorTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-03 11:30:12 (GMT)
committerTrond Kjernåsen <trond.kjernasen@nokia.com>2010-09-03 11:30:12 (GMT)
commitfe97cdb508697140ebbba8d73097fdd9e5b44bf4 (patch)
tree71f6471094a13c05bb51afb263f8e214d9035740 /tests/arthur/baselineserver
parentbfd35cefd0a56f0faf624185330d5b9e0c9701d9 (diff)
downloadQt-fe97cdb508697140ebbba8d73097fdd9e5b44bf4.zip
Qt-fe97cdb508697140ebbba8d73097fdd9e5b44bf4.tar.gz
Qt-fe97cdb508697140ebbba8d73097fdd9e5b44bf4.tar.bz2
Move the engine->string function into ImageItem.
Diffstat (limited to 'tests/arthur/baselineserver')
-rw-r--r--tests/arthur/baselineserver/src/baselineserver.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/tests/arthur/baselineserver/src/baselineserver.cpp b/tests/arthur/baselineserver/src/baselineserver.cpp
index 430d4af..ec5793f 100644
--- a/tests/arthur/baselineserver/src/baselineserver.cpp
+++ b/tests/arthur/baselineserver/src/baselineserver.cpp
@@ -196,7 +196,7 @@ QString BaselineHandler::pathForItem(const ImageItem &item, bool isBaseline)
+ plat.qtVersion + QDir::separator();
if (isBaseline) {
storePath += QLatin1String("baselines") + QDir::separator()
- + engineForItem(item) + QDir::separator();
+ + item.engineAsString() + QDir::separator();
} else {
storePath += runId + QDir::separator();
}
@@ -204,21 +204,6 @@ QString BaselineHandler::pathForItem(const ImageItem &item, bool isBaseline)
return storePath + item.scriptName + QLatin1Char('.');
}
-QString BaselineHandler::engineForItem(const ImageItem &item)
-{
- switch (item.engine) {
- case ImageItem::Raster:
- return QLatin1String("Raster");
- break;
- case ImageItem::OpenGL:
- return QLatin1String("OpenGL");
- break;
- default:
- break;
- }
- return QLatin1String("Unknown");
-}
-
QString BaselineHandler::computeMismatchScore(const QImage &baseline, const QImage &rendered)
{
if (baseline.size() != rendered.size() || baseline.format() != rendered.format())