Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/plasma_surface_test.cpp
Show First 20 Lines • Show All 250 Lines • ▼ Show 20 Line(s) | 250 | { | |||
---|---|---|---|---|---|
251 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 251 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
252 | QTest::addColumn<PlasmaShellSurface::PanelBehavior>("panelBehavior"); | 252 | QTest::addColumn<PlasmaShellSurface::PanelBehavior>("panelBehavior"); | ||
253 | QTest::addColumn<bool>("expectedStrut"); | 253 | QTest::addColumn<bool>("expectedStrut"); | ||
254 | QTest::addColumn<QRect>("expectedMaxArea"); | 254 | QTest::addColumn<QRect>("expectedMaxArea"); | ||
255 | QTest::addColumn<KWin::Layer>("expectedLayer"); | 255 | QTest::addColumn<KWin::Layer>("expectedLayer"); | ||
256 | 256 | | |||
257 | QTest::newRow("always visible - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::AlwaysVisible << true << QRect(0, 50, 1280, 974) << KWin::DockLayer; | 257 | QTest::newRow("always visible - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::AlwaysVisible << true << QRect(0, 50, 1280, 974) << KWin::DockLayer; | ||
258 | QTest::newRow("always visible - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::AlwaysVisible << true << QRect(0, 50, 1280, 974) << KWin::DockLayer; | 258 | QTest::newRow("always visible - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::AlwaysVisible << true << QRect(0, 50, 1280, 974) << KWin::DockLayer; | ||
259 | QTest::newRow("always visible - xdgShellV6") << Test::ShellSurfaceType::XdgShellV6 << PlasmaShellSurface::PanelBehavior::AlwaysVisible << true << QRect(0, 50, 1280, 974) << KWin::DockLayer; | ||||
259 | QTest::newRow("autohide - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::AutoHide << false << QRect(0, 0, 1280, 1024) << KWin::AboveLayer; | 260 | QTest::newRow("autohide - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::AutoHide << false << QRect(0, 0, 1280, 1024) << KWin::AboveLayer; | ||
260 | QTest::newRow("autohide - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::AutoHide << false << QRect(0, 0, 1280, 1024) << KWin::AboveLayer; | 261 | QTest::newRow("autohide - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::AutoHide << false << QRect(0, 0, 1280, 1024) << KWin::AboveLayer; | ||
262 | QTest::newRow("autohide - xdgShellV6") << Test::ShellSurfaceType::XdgShellV6 << PlasmaShellSurface::PanelBehavior::AutoHide << false << QRect(0, 0, 1280, 1024) << KWin::AboveLayer; | ||||
261 | QTest::newRow("windows can cover - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::WindowsCanCover << false << QRect(0, 0, 1280, 1024) << KWin::NormalLayer; | 263 | QTest::newRow("windows can cover - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::WindowsCanCover << false << QRect(0, 0, 1280, 1024) << KWin::NormalLayer; | ||
262 | QTest::newRow("windows can cover - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::WindowsCanCover << false << QRect(0, 0, 1280, 1024) << KWin::NormalLayer; | 264 | QTest::newRow("windows can cover - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::WindowsCanCover << false << QRect(0, 0, 1280, 1024) << KWin::NormalLayer; | ||
265 | QTest::newRow("windows can cover - xdgShellV6") << Test::ShellSurfaceType::XdgShellV6 << PlasmaShellSurface::PanelBehavior::WindowsCanCover << false << QRect(0, 0, 1280, 1024) << KWin::NormalLayer; | ||||
263 | QTest::newRow("windows go below - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::WindowsGoBelow << false << QRect(0, 0, 1280, 1024) << KWin::DockLayer; | 266 | QTest::newRow("windows go below - wlShell") << Test::ShellSurfaceType::WlShell << PlasmaShellSurface::PanelBehavior::WindowsGoBelow << false << QRect(0, 0, 1280, 1024) << KWin::DockLayer; | ||
264 | QTest::newRow("windows go below - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::WindowsGoBelow << false << QRect(0, 0, 1280, 1024) << KWin::DockLayer; | 267 | QTest::newRow("windows go below - xdgShellV5") << Test::ShellSurfaceType::XdgShellV5 << PlasmaShellSurface::PanelBehavior::WindowsGoBelow << false << QRect(0, 0, 1280, 1024) << KWin::DockLayer; | ||
268 | QTest::newRow("windows go below - xdgShellV6") << Test::ShellSurfaceType::XdgShellV6 << PlasmaShellSurface::PanelBehavior::WindowsGoBelow << false << QRect(0, 0, 1280, 1024) << KWin::DockLayer; | ||||
265 | } | 269 | } | ||
266 | 270 | | |||
267 | void PlasmaSurfaceTest::testPanelTypeHasStrut() | 271 | void PlasmaSurfaceTest::testPanelTypeHasStrut() | ||
268 | { | 272 | { | ||
269 | QScopedPointer<Surface> surface(Test::createSurface()); | 273 | QScopedPointer<Surface> surface(Test::createSurface()); | ||
270 | QVERIFY(!surface.isNull()); | 274 | QVERIFY(!surface.isNull()); | ||
271 | QFETCH(Test::ShellSurfaceType, type); | 275 | QFETCH(Test::ShellSurfaceType, type); | ||
272 | QScopedPointer<QObject> shellSurface(Test::createShellSurface(type, surface.data())); | 276 | QScopedPointer<QObject> shellSurface(Test::createShellSurface(type, surface.data())); | ||
▲ Show 20 Lines • Show All 133 Lines • Show Last 20 Lines |