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
9ae04f21
Commit
9ae04f21
authored
Sep 20, 2014
by
Martin Flöser
Browse files
Extend test_wayland_surface to test frame rendered callback
parent
c14bbe9c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/wayland/autotests/client/test_wayland_surface.cpp
View file @
9ae04f21
...
...
@@ -310,7 +310,9 @@ void TestWaylandSurface::testAttachBuffer()
QVERIFY
(
blueBuffer
->
isUsed
());
s
->
attachBuffer
(
blueBuffer
);
s
->
damage
(
QRect
(
0
,
0
,
24
,
24
));
s
->
commit
(
KWayland
::
Client
::
Surface
::
CommitFlag
::
None
);
QSignalSpy
frameRenderedSpy
(
s
,
SIGNAL
(
frameRendered
()));
QVERIFY
(
frameRenderedSpy
.
isValid
());
s
->
commit
();
damageSpy
.
clear
();
QVERIFY
(
damageSpy
.
wait
());
QVERIFY
(
!
buffer2
->
isReferenced
());
...
...
@@ -334,6 +336,9 @@ void TestWaylandSurface::testAttachBuffer()
buffer3
->
unref
();
QVERIFY
(
buffer3
->
isReferenced
());
serverSurface
->
frameRendered
(
1
);
QVERIFY
(
frameRenderedSpy
.
wait
());
// TODO: add signal test on release
buffer
->
unref
();
}
...
...
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