Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
System
Dolphin
Commits
c623522e
Commit
c623522e
authored
Feb 24, 2022
by
Ismael Asensio
Browse files
[DolphinQueryTest] Fix class name duplication
parent
ddba4f5f
Pipeline
#142207
passed with stage
in 1 minute and 49 seconds
Changes
1
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
src/tests/dolphinquerytest.cpp
View file @
c623522e
...
...
@@ -15,7 +15,7 @@
#include
<QUrl>
#include
<QUrlQuery>
class
Dolphin
SearchBox
Test
:
public
QObject
class
Dolphin
Query
Test
:
public
QObject
{
Q_OBJECT
...
...
@@ -47,7 +47,7 @@ QUrl balooQueryUrl(const QString& searchString)
return
searchUrl
;
}
void
Dolphin
SearchBox
Test
::
initTestCase
()
void
Dolphin
Query
Test
::
initTestCase
()
{
QStandardPaths
::
setTestModeEnabled
(
true
);
}
...
...
@@ -55,7 +55,7 @@ void DolphinSearchBoxTest::initTestCase()
/**
* Defines the parameters for the test cases in testBalooSearchParsing()
*/
void
Dolphin
SearchBox
Test
::
testBalooSearchParsing_data
()
void
Dolphin
Query
Test
::
testBalooSearchParsing_data
()
{
QTest
::
addColumn
<
QUrl
>
(
"searchUrl"
);
...
...
@@ -160,7 +160,7 @@ void DolphinSearchBoxTest::testBalooSearchParsing_data()
* properly handled by the searchbox, and only "user" or filename terms are added to the
* text bar of the searchbox.
*/
void
Dolphin
SearchBox
Test
::
testBalooSearchParsing
()
void
Dolphin
Query
Test
::
testBalooSearchParsing
()
{
QFETCH
(
QUrl
,
searchUrl
);
QFETCH
(
QString
,
expectedText
);
...
...
@@ -190,6 +190,6 @@ void DolphinSearchBoxTest::testBalooSearchParsing()
QCOMPARE
(
query
.
hasFileName
(),
hasFileName
);
}
QTEST_MAIN
(
Dolphin
SearchBox
Test
)
QTEST_MAIN
(
Dolphin
Query
Test
)
#include
"dolphinquerytest.moc"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment