Skip to content
GitLab
Menu
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
4f9cbe43
Commit
4f9cbe43
authored
Feb 14, 2020
by
Vlad Zahorodnii
Browse files
[autotests] Make XWaylandInputTest more robust
parent
1181af2c
Changes
1
Hide whitespace changes
Inline
Side-by-side
autotests/integration/xwayland_input_test.cpp
View file @
4f9cbe43
...
...
@@ -196,12 +196,12 @@ void XWaylandInputTest::testPointerEnterLeaveSsd()
QCOMPARE
(
waylandServer
()
->
seat
()
->
focusedPointerSurface
(),
client
->
surface
());
QVERIFY
(
waylandServer
()
->
seat
()
->
focusedPointer
());
QVERIFY
(
enteredSpy
.
wait
());
QCOMPARE
(
enteredSpy
.
last
().
first
(),
QPoint
(
49
,
81
));
QCOMPARE
(
enteredSpy
.
last
().
first
(),
client
->
frameGeometry
().
center
()
-
client
->
clientPos
(
));
// move out of window
Cursor
::
setPos
(
client
->
frameGeometry
().
bottomRight
()
+
QPoint
(
10
,
10
));
QVERIFY
(
leftSpy
.
wait
());
QCOMPARE
(
leftSpy
.
last
().
first
(),
QPoint
(
49
,
81
));
QCOMPARE
(
leftSpy
.
last
().
first
(),
client
->
frameGeometry
().
center
()
-
client
->
clientPos
(
));
// destroy window again
QSignalSpy
windowClosedSpy
(
client
,
&
X11Client
::
windowClosed
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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