Fix PlasmaSurfaceTest
Opaqueness is not based on the window type.
This commit is contained in:
parent
a2c765800b
commit
533ec39af5
1 changed files with 0 additions and 22 deletions
|
@ -41,7 +41,6 @@ private Q_SLOTS:
|
|||
void testAcceptsFocus_data();
|
||||
void testAcceptsFocus();
|
||||
|
||||
void testDesktopIsOpaque();
|
||||
void testPanelWindowsCanCover_data();
|
||||
void testPanelWindowsCanCover();
|
||||
void testOSDPlacement();
|
||||
|
@ -173,27 +172,6 @@ void PlasmaSurfaceTest::testAcceptsFocus()
|
|||
QTEST(c->isActive(), "active");
|
||||
}
|
||||
|
||||
void PlasmaSurfaceTest::testDesktopIsOpaque()
|
||||
{
|
||||
QScopedPointer<Surface> surface(Test::createSurface());
|
||||
QVERIFY(!surface.isNull());
|
||||
QScopedPointer<XdgShellSurface> shellSurface(Test::createXdgShellStableSurface(surface.data()));
|
||||
QVERIFY(!shellSurface.isNull());
|
||||
QScopedPointer<PlasmaShellSurface> plasmaSurface(m_plasmaShell->createSurface(surface.data()));
|
||||
QVERIFY(!plasmaSurface.isNull());
|
||||
plasmaSurface->setRole(PlasmaShellSurface::Role::Desktop);
|
||||
|
||||
// now render to map the window
|
||||
auto c = Test::renderAndWaitForShown(surface.data(), QSize(100, 50), Qt::blue);
|
||||
|
||||
QVERIFY(c);
|
||||
QCOMPARE(c->windowType(), NET::Desktop);
|
||||
QVERIFY(c->isDesktop());
|
||||
|
||||
QVERIFY(!c->hasAlpha());
|
||||
QCOMPARE(c->depth(), 24);
|
||||
}
|
||||
|
||||
void PlasmaSurfaceTest::testOSDPlacement()
|
||||
{
|
||||
QScopedPointer<Surface> surface(Test::createSurface());
|
||||
|
|
Loading…
Reference in a new issue