From eaba6ff6609116f59520ab1136c467a03340c7b5 Mon Sep 17 00:00:00 2001 From: Ulf Hermann Date: Tue, 3 Jan 2017 18:51:57 +0100 Subject: [PATCH] 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 --- src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp index adfd1682427..67a799d68fd 100644 --- a/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp +++ b/src/plugins/qmlprofiler/tests/pixmapcachemodel_test.cpp @@ -242,6 +242,7 @@ void PixmapCacheModelTest::testConsistency() case 1: QCOMPARE(collapsedRow, 1); QVERIFY(details[QLatin1String("displayName")].toString() == model.tr("Image Cached")); + QVERIFY(details.contains(model.tr("Cache Size"))); break; default: QVERIFY(collapsedRow > 1); @@ -255,7 +256,6 @@ void PixmapCacheModelTest::testConsistency() break; } - QVERIFY(details.contains(model.tr("Cache Size"))); QString filename = details[model.tr("File")].toString(); QVERIFY(filename == QString("dings.png") || filename == QString("blah.png")); QVERIFY(details.contains(model.tr("Width")));