Commit eaba6ff6 authored by Ulf Hermann's avatar Ulf Hermann

QmlProfiler: Fix pixmapcachemodel test

Since the cache size is not given for individual file events anymore,
the test should only check it for the events in row 1.

Change-Id: Idfc7ec90ab8da214f4eedce36dd3b84fb00ed553
Reviewed-by: Christian Kandeler's avatarChristian Kandeler <christian.kandeler@qt.io>
parent 7477411d
...@@ -242,6 +242,7 @@ void PixmapCacheModelTest::testConsistency() ...@@ -242,6 +242,7 @@ void PixmapCacheModelTest::testConsistency()
case 1: case 1:
QCOMPARE(collapsedRow, 1); QCOMPARE(collapsedRow, 1);
QVERIFY(details[QLatin1String("displayName")].toString() == model.tr("Image Cached")); QVERIFY(details[QLatin1String("displayName")].toString() == model.tr("Image Cached"));
QVERIFY(details.contains(model.tr("Cache Size")));
break; break;
default: default:
QVERIFY(collapsedRow > 1); QVERIFY(collapsedRow > 1);
...@@ -255,7 +256,6 @@ void PixmapCacheModelTest::testConsistency() ...@@ -255,7 +256,6 @@ void PixmapCacheModelTest::testConsistency()
break; break;
} }
QVERIFY(details.contains(model.tr("Cache Size")));
QString filename = details[model.tr("File")].toString(); QString filename = details[model.tr("File")].toString();
QVERIFY(filename == QString("dings.png") || filename == QString("blah.png")); QVERIFY(filename == QString("dings.png") || filename == QString("blah.png"));
QVERIFY(details.contains(model.tr("Width"))); QVERIFY(details.contains(model.tr("Width")));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment