]> cloud.milkyroute.net Git - dolphin.git/blobdiff - src/tests/dolphinmainwindowtest.cpp
[DolphinMainWindowTest] Fix testNewFileMenuEnabled
[dolphin.git] / src / tests / dolphinmainwindowtest.cpp
index d7ff1fb542d836b34a5ab47e4340e17839489730..c98ababa6aa323824e0c9d503a4d945a3357c2ac 100644 (file)
@@ -203,7 +203,6 @@ void DolphinMainWindowTest::testUpdateWindowTitleAfterChangingSplitView()
 
     // Activate back the left view and check whether the old title gets restored.
     leftViewContainer->setActive(true);
-    QEXPECT_FAIL("", "Bug #402641", Continue);
     QCOMPARE(m_mainWindow->windowTitle(), oldTitle);
 }
 
@@ -248,7 +247,7 @@ void DolphinMainWindowTest::testNewFileMenuEnabled()
     QVERIFY(newFileMenu);
 
     QFETCH(bool, expectedEnabled);
-    QCOMPARE(newFileMenu->isEnabled(), expectedEnabled);
+    QTRY_COMPARE(newFileMenu->isEnabled(), expectedEnabled);
 }
 
 QTEST_MAIN(DolphinMainWindowTest)