From 956409bb38b7f5484b7109bd4824574870752c51 Mon Sep 17 00:00:00 2001 From: Martchus Date: Tue, 16 Jun 2020 01:18:23 +0200 Subject: [PATCH] Do not rely on presence of icon themes in tests --- tests/buttonoverlay.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/tests/buttonoverlay.cpp b/tests/buttonoverlay.cpp index 6476038..42106c3 100644 --- a/tests/buttonoverlay.cpp +++ b/tests/buttonoverlay.cpp @@ -72,10 +72,8 @@ void ButtonOverlayTests::testClearLineEdit() const auto *const iconButton = qobject_cast(clearWidget.buttonLayout()->itemAt(2)->widget()); QVERIFY2(iconButton, "icon button present"); QCOMPARE(iconButton->toolTip(), QStringLiteral("Copy")); - QVERIFY2(!iconButton->pixmap().isNull(), "pixmap assigned"); customAction.setText(QStringLiteral("Paste")); QCOMPARE(iconButton->toolTip(), QStringLiteral("Paste")); - QVERIFY2(!iconButton->pixmap().isNull(), "pixmap still assigned"); // remove buttons again static_cast(clearWidget).setClearButtonEnabled(false);