┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2018-10-07 21:37:35 +0200
committerElvis Angelaccio <[email protected]>2018-10-07 21:37:35 +0200
commit949da1fb3117c736e4f2f5182126dde1a758c719 (patch)
tree6bcfeacf9b3050ce080a654328893eb184688e9b
parent54ae7f2488c1c52f7fe9c009bf674045eb6572dd (diff)
[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.
-rw-r--r--src/tests/dolphinmainwindowtest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tests/dolphinmainwindowtest.cpp b/src/tests/dolphinmainwindowtest.cpp
index 3fdabe7b8..673bccd44 100644
--- a/src/tests/dolphinmainwindowtest.cpp
+++ b/src/tests/dolphinmainwindowtest.cpp
@@ -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()