Do not rely on presence of icon themes in tests

This commit is contained in:
Martchus 2020-06-16 01:18:23 +02:00
parent 2598c0f5ae
commit 956409bb38
1 changed files with 0 additions and 2 deletions

View File

@ -72,10 +72,8 @@ void ButtonOverlayTests::testClearLineEdit()
const auto *const iconButton = qobject_cast<const IconButton *>(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<ButtonOverlay &>(clearWidget).setClearButtonEnabled(false);