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
Plasma
KWin
Commits
474d0344
Commit
474d0344
authored
Sep 30, 2020
by
Bhushan Shah
📱
Browse files
autotests: rename to testInputMethod
Relevant class got renamed, also update the test name Related:
!302
parent
309a656e
Changes
3
Hide whitespace changes
Inline
Side-by-side
CMakeLists.txt
View file @
474d0344
...
...
@@ -467,6 +467,7 @@ set(kwin_SRCS
input.cpp
input_event.cpp
input_event_spy.cpp
inputmethod.cpp
inputpanelv1client.cpp
inputpanelv1integration.cpp
internal_client.cpp
...
...
@@ -531,7 +532,6 @@ set(kwin_SRCS
utils.cpp
virtualdesktops.cpp
virtualdesktopsdbustypes.cpp
inputmethod.cpp
virtualkeyboard_dbus.cpp
was_user_interaction_x11_filter.cpp
wayland_server.cpp
...
...
autotests/integration/CMakeLists.txt
View file @
474d0344
...
...
@@ -86,7 +86,7 @@ integrationTest(WAYLAND_ONLY NAME testNoGlobalShortcuts SRCS no_global_shortcuts
integrationTest
(
WAYLAND_ONLY NAME testBufferSizeChange SRCS buffer_size_change_test.cpp
)
integrationTest
(
WAYLAND_ONLY NAME testPlacement SRCS placement_test.cpp
)
integrationTest
(
WAYLAND_ONLY NAME testActivation SRCS activation_test.cpp
)
integrationTest
(
WAYLAND_ONLY NAME test
VirtualKeyboard SRCS virtualkeyboar
d_test.cpp
)
integrationTest
(
WAYLAND_ONLY NAME test
InputMethod SRCS inputmetho
d_test.cpp
)
if
(
XCB_ICCCM_FOUND
)
integrationTest
(
NAME testMoveResize SRCS move_resize_window_test.cpp LIBS XCB::ICCCM
)
...
...
autotests/integration/
virtualkeyboar
d_test.cpp
→
autotests/integration/
inputmetho
d_test.cpp
View file @
474d0344
...
...
@@ -40,9 +40,9 @@ using namespace KWin;
using
namespace
KWayland
::
Client
;
using
KWin
::
VirtualKeyboardDBus
;
static
const
QString
s_socketName
=
QStringLiteral
(
"wayland_test_kwin_
virtualkeyboar
d-0"
);
static
const
QString
s_socketName
=
QStringLiteral
(
"wayland_test_kwin_
inputmetho
d-0"
);
class
VirtualKeyboar
dTest
:
public
QObject
class
InputMetho
dTest
:
public
QObject
{
Q_OBJECT
private
Q_SLOTS
:
...
...
@@ -55,7 +55,7 @@ private Q_SLOTS:
};
void
VirtualKeyboar
dTest
::
initTestCase
()
void
InputMetho
dTest
::
initTestCase
()
{
qRegisterMetaType
<
KWin
::
Deleted
*>
();
qRegisterMetaType
<
KWin
::
AbstractClient
*>
();
...
...
@@ -77,7 +77,7 @@ void VirtualKeyboardTest::initTestCase()
}
void
VirtualKeyboar
dTest
::
init
()
void
InputMetho
dTest
::
init
()
{
QVERIFY
(
Test
::
setupWaylandConnection
(
Test
::
AdditionalWaylandInterface
::
Seat
|
Test
::
AdditionalWaylandInterface
::
TextInputManagerV2
|
...
...
@@ -95,12 +95,12 @@ void VirtualKeyboardTest::init()
QDBusConnection
::
sessionBus
().
call
(
message
);
}
void
VirtualKeyboar
dTest
::
cleanup
()
void
InputMetho
dTest
::
cleanup
()
{
Test
::
destroyWaylandConnection
();
}
void
VirtualKeyboar
dTest
::
testOpenClose
()
void
InputMetho
dTest
::
testOpenClose
()
{
QSignalSpy
clientAddedSpy
(
workspace
(),
&
Workspace
::
clientAdded
);
QSignalSpy
clientRemovedSpy
(
workspace
(),
&
Workspace
::
clientRemoved
);
...
...
@@ -154,7 +154,7 @@ void VirtualKeyboardTest::testOpenClose()
QVERIFY
(
Test
::
waitForWindowDestroyed
(
client
));
}
void
VirtualKeyboar
dTest
::
testEnableDisableV3
()
void
InputMetho
dTest
::
testEnableDisableV3
()
{
QSignalSpy
clientAddedSpy
(
workspace
(),
&
Workspace
::
clientAdded
);
QSignalSpy
clientRemovedSpy
(
workspace
(),
&
Workspace
::
clientRemoved
);
...
...
@@ -188,6 +188,6 @@ void VirtualKeyboardTest::testEnableDisableV3()
QVERIFY
(
clientRemovedSpy
.
wait
());
}
WAYLANDTEST_MAIN
(
VirtualKeyboar
dTest
)
WAYLANDTEST_MAIN
(
InputMetho
dTest
)
#include
"virtualkeyboard_test.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