┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/tests/dolphinmainwindowtest.cpp
diff options
context:
space:
mode:
authorFelix Ernst <[email protected]>2022-07-07 13:32:28 +0000
committerFelix Ernst <[email protected]>2022-07-07 13:32:28 +0000
commitbb1b17ae694784f0d06d6bf360cd181d10645de0 (patch)
treec67fbb2a9429bf6ed632b0b8d2e8292edf9580bd /src/tests/dolphinmainwindowtest.cpp
parentc288a48fdc591bf047e2d66f089bde557d948657 (diff)
Improve goActions test
This merge request fixes up a little oversight by me. I will merge this as soon as the pipeline passes. ------------------ Some lines verified that nothing is selected when navigating to a folder that was not acted on yet. These verifications didn't test anything meaningful because the folder in question was empty. This commit adds a file and a folder to the test folder so that testing if nothing is selected means something.
Diffstat (limited to 'src/tests/dolphinmainwindowtest.cpp')
-rw-r--r--src/tests/dolphinmainwindowtest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tests/dolphinmainwindowtest.cpp b/src/tests/dolphinmainwindowtest.cpp
index 448d5bd84..ef972ff25 100644
--- a/src/tests/dolphinmainwindowtest.cpp
+++ b/src/tests/dolphinmainwindowtest.cpp
@@ -330,6 +330,8 @@ void DolphinMainWindowTest::testGoActions()
QScopedPointer<TestDir> testDir{new TestDir()};
testDir->createDir("a");
testDir->createDir("b");
+ testDir->createDir("b/b-1");
+ testDir->createFile("b/b-2");
testDir->createDir("c");
QUrl childDirUrl(QDir::cleanPath(testDir->url().toString() + "/b"));
m_mainWindow->openDirectories({ childDirUrl }, false); // Open "b" dir