[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:
Elvis Angelaccio 2018-10-07 21:37:35 +02:00
parent 54ae7f2488
commit 949da1fb31

View file

@ -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()