[autotest] Extend test for PlasmaShellSurface on server side
Verifies that the shell is returned correctly and the static getter for wl_resource works as expected.
This commit is contained in:
parent
ee5e92fe14
commit
8e28a6c1c2
1 changed files with 3 additions and 0 deletions
|
@ -187,6 +187,9 @@ void TestPlasmaShell::testRole()
|
||||||
QVERIFY(sps);
|
QVERIFY(sps);
|
||||||
QVERIFY(sps->surface());
|
QVERIFY(sps->surface());
|
||||||
QCOMPARE(sps->surface(), surfaceCreatedSpy.first().first().value<SurfaceInterface*>());
|
QCOMPARE(sps->surface(), surfaceCreatedSpy.first().first().value<SurfaceInterface*>());
|
||||||
|
QCOMPARE(sps->shell(), m_plasmaShellInterface);
|
||||||
|
QCOMPARE(PlasmaShellSurfaceInterface::get(sps->resource()), sps);
|
||||||
|
QVERIFY(!PlasmaShellSurfaceInterface::get(nullptr));
|
||||||
|
|
||||||
// default role should be normal
|
// default role should be normal
|
||||||
QCOMPARE(sps->role(), PlasmaShellSurfaceInterface::Role::Normal);
|
QCOMPARE(sps->role(), PlasmaShellSurfaceInterface::Role::Normal);
|
||||||
|
|
Loading…
Reference in a new issue