┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorElvis Angelaccio <[email protected]>2019-04-07 22:18:14 +0200
committerElvis Angelaccio <[email protected]>2019-04-07 22:42:50 +0200
commit30a335cbcf1268bd35e6916c3649ec1b40134858 (patch)
tree58bd42d0c2ca284211dfbe46662105965939555d /src/tests
parentff40714773ac10ae8fda0c6bfd2b9f48234c49f4 (diff)
[DolphinMainWindowTest] Fix testNewFileMenuEnabled
The newFileMenu enabled status is updated whenever the KDirLister emits the `completed` signal: use QTRY_COMPARE so that we can wait for it.
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/dolphinmainwindowtest.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/dolphinmainwindowtest.cpp b/src/tests/dolphinmainwindowtest.cpp
index 9cc6b84e8..c98ababa6 100644
--- a/src/tests/dolphinmainwindowtest.cpp
+++ b/src/tests/dolphinmainwindowtest.cpp
@@ -247,7 +247,7 @@ void DolphinMainWindowTest::testNewFileMenuEnabled()
QVERIFY(newFileMenu);
QFETCH(bool, expectedEnabled);
- QCOMPARE(newFileMenu->isEnabled(), expectedEnabled);
+ QTRY_COMPARE(newFileMenu->isEnabled(), expectedEnabled);
}
QTEST_MAIN(DolphinMainWindowTest)