diff options
| author | Elvis Angelaccio <[email protected]> | 2019-04-07 22:18:14 +0200 |
|---|---|---|
| committer | Elvis Angelaccio <[email protected]> | 2019-04-07 22:42:50 +0200 |
| commit | 30a335cbcf1268bd35e6916c3649ec1b40134858 (patch) | |
| tree | 58bd42d0c2ca284211dfbe46662105965939555d /src/tests/dolphinmainwindowtest.cpp | |
| parent | ff40714773ac10ae8fda0c6bfd2b9f48234c49f4 (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/dolphinmainwindowtest.cpp')
| -rw-r--r-- | src/tests/dolphinmainwindowtest.cpp | 2 |
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) |
