From 533ec39af54771589ff7b913358a151e0e78e01b Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Thu, 17 Dec 2020 13:00:46 +0200 Subject: [PATCH] Fix PlasmaSurfaceTest Opaqueness is not based on the window type. --- autotests/integration/plasma_surface_test.cpp | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/autotests/integration/plasma_surface_test.cpp b/autotests/integration/plasma_surface_test.cpp index b30cd891aa..0a7ca1f2a8 100644 --- a/autotests/integration/plasma_surface_test.cpp +++ b/autotests/integration/plasma_surface_test.cpp @@ -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(Test::createSurface()); - QVERIFY(!surface.isNull()); - QScopedPointer shellSurface(Test::createXdgShellStableSurface(surface.data())); - QVERIFY(!shellSurface.isNull()); - QScopedPointer 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(Test::createSurface());