[autotest] Verify the static getter on PlasmaShellSurface
Extends the test to verify that the PlasmaShellSurface::get returns the PlasmaShellSurface for a given Surface.
This commit is contained in:
parent
c89ae2105e
commit
41ac06747e
1 changed files with 4 additions and 0 deletions
|
@ -165,7 +165,11 @@ void TestPlasmaShell::testRole()
|
|||
|
||||
// create the surface
|
||||
QScopedPointer<Surface> s(m_compositor->createSurface());
|
||||
// no PlasmaShellSurface for the Surface yet yet
|
||||
QVERIFY(!PlasmaShellSurface::get(s.data()));
|
||||
QScopedPointer<PlasmaShellSurface> ps(m_plasmaShell->createSurface(s.data()));
|
||||
// now we should have a PlasmaShellSurface for
|
||||
QCOMPARE(PlasmaShellSurface::get(s.data()), ps.data());
|
||||
|
||||
// try to create another PlasmaShellSurface for the same Surface, should return from cache
|
||||
QCOMPARE(m_plasmaShell->createSurface(s.data()), ps.data());
|
||||
|
|
Loading…
Reference in a new issue