mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-12 12:54:29 +00:00
[DolphinMainWindowTest] Attempt to fix testOpenInNewTabTile() on the CI
Both icon `name()`s are empty on the CI, which probably doesn't have icons or something. This should hopefully fix it.
This commit is contained in:
parent
54ae7f2488
commit
949da1fb31
|
@ -188,9 +188,10 @@ void DolphinMainWindowTest::testOpenInNewTabTitle()
|
|||
|
||||
tabWidget->openNewTab(QUrl::fromLocalFile(QDir::tempPath()));
|
||||
QCOMPARE(tabWidget->count(), 2);
|
||||
qDebug() << "First tab:" << tabWidget->tabIcon(0).name() << "second tab:" << tabWidget->tabIcon(1).name();
|
||||
QVERIFY(tabWidget->tabIcon(0).name() != tabWidget->tabIcon(1).name());
|
||||
QVERIFY(tabWidget->tabText(0) != tabWidget->tabText(1));
|
||||
if (!tabWidget->tabIcon(0).isNull() && !tabWidget->tabIcon(1).isNull()) {
|
||||
QVERIFY(tabWidget->tabIcon(0).name() != tabWidget->tabIcon(1).name());
|
||||
}
|
||||
}
|
||||
|
||||
void DolphinMainWindowTest::testNewFileMenuEnabled_data()
|
||||
|
|
Loading…
Reference in a new issue