Both icon `name()`s are empty on the CI, which probably doesn't have
icons or something. This should hopefully fix it.
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()