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
Utilities
Kate
Commits
645fbeb9
Commit
645fbeb9
authored
Oct 30, 2022
by
Christoph Cullmann
🍨
Browse files
avoid some unit test warnings
parent
68833005
Pipeline
#257926
failed with stage
in 7 minutes and 33 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
apps/lib/autotests/kate_view_mgmt_tests.cpp
View file @
645fbeb9
...
...
@@ -8,6 +8,7 @@
#include
"kateviewspace.h"
#include
"ktexteditor_utils.h"
#include
<KLocalizedString>
#include
<KTextEditor/Editor>
#include
<QCommandLineParser>
...
...
@@ -24,6 +25,10 @@ static bool viewspaceContainsView(KateViewSpace *vs, KTextEditor::View *v)
KateViewManagementTests
::
KateViewManagementTests
(
QObject
*
)
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp
->
setApplicationName
(
QStringLiteral
(
"kate"
));
KLocalizedString
::
setApplicationDomain
(
"kate"
);
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
...
...
apps/lib/autotests/location_history_test.cpp
View file @
645fbeb9
...
...
@@ -14,11 +14,17 @@
#include
<QTemporaryDir>
#include
<QTest>
#include
<KLocalizedString>
QTEST_MAIN
(
LocationHistoryTest
)
LocationHistoryTest
::
LocationHistoryTest
(
QObject
*
parent
)
:
QObject
(
parent
)
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp
->
setApplicationName
(
QStringLiteral
(
"kate"
));
KLocalizedString
::
setApplicationDomain
(
"kate"
);
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
...
...
apps/lib/autotests/session_manager_test.cpp
View file @
645fbeb9
...
...
@@ -9,6 +9,7 @@
#include
"katesessionmanager.h"
#include
<KConfig>
#include
<KLocalizedString>
#include
<QCommandLineParser>
#include
<QTemporaryDir>
...
...
@@ -18,6 +19,10 @@ QTEST_MAIN(KateSessionManagerTest)
KateSessionManagerTest
::
KateSessionManagerTest
()
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp
->
setApplicationName
(
QStringLiteral
(
"kate"
));
KLocalizedString
::
setApplicationDomain
(
"kate"
);
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
...
...
apps/lib/autotests/sessions_action_test.cpp
View file @
645fbeb9
...
...
@@ -15,10 +15,16 @@
#include
<QTemporaryDir>
#include
<QtTestWidgets>
#include
<KLocalizedString>
QTEST_MAIN
(
KateSessionsActionTest
)
KateSessionsActionTest
::
KateSessionsActionTest
()
{
// ensure ui file can be found and the translation domain is set to avoid warnings
qApp
->
setApplicationName
(
QStringLiteral
(
"kate"
));
KLocalizedString
::
setApplicationDomain
(
"kate"
);
m_tempdir
=
new
QTemporaryDir
;
QVERIFY
(
m_tempdir
->
isValid
());
...
...
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