Commit 533ec39a authored by Vlad Zahorodnii's avatar Vlad Zahorodnii
Browse files

Fix PlasmaSurfaceTest

Opaqueness is not based on the window type.
parent a2c76580
...@@ -41,7 +41,6 @@ private Q_SLOTS: ...@@ -41,7 +41,6 @@ private Q_SLOTS:
void testAcceptsFocus_data(); void testAcceptsFocus_data();
void testAcceptsFocus(); void testAcceptsFocus();
void testDesktopIsOpaque();
void testPanelWindowsCanCover_data(); void testPanelWindowsCanCover_data();
void testPanelWindowsCanCover(); void testPanelWindowsCanCover();
void testOSDPlacement(); void testOSDPlacement();
...@@ -173,27 +172,6 @@ void PlasmaSurfaceTest::testAcceptsFocus() ...@@ -173,27 +172,6 @@ void PlasmaSurfaceTest::testAcceptsFocus()
QTEST(c->isActive(), "active"); 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() void PlasmaSurfaceTest::testOSDPlacement()
{ {
QScopedPointer<Surface> surface(Test::createSurface()); QScopedPointer<Surface> surface(Test::createSurface());
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment