Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/effects/translucency_test.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | 43 | private Q_SLOTS: | |||
---|---|---|---|---|---|
49 | void testDialogClose(); | 49 | void testDialogClose(); | ||
50 | 50 | | |||
51 | private: | 51 | private: | ||
52 | Effect *m_translucencyEffect = nullptr; | 52 | Effect *m_translucencyEffect = nullptr; | ||
53 | }; | 53 | }; | ||
54 | 54 | | |||
55 | void TranslucencyTest::initTestCase() | 55 | void TranslucencyTest::initTestCase() | ||
56 | { | 56 | { | ||
57 | qputenv("XDG_DATA_DIRS", QCoreApplication::applicationDirPath().toUtf8()); | ||||
57 | qRegisterMetaType<KWin::ShellClient*>(); | 58 | qRegisterMetaType<KWin::ShellClient*>(); | ||
58 | qRegisterMetaType<KWin::AbstractClient*>(); | 59 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
59 | qRegisterMetaType<KWin::Effect*>(); | 60 | qRegisterMetaType<KWin::Effect*>(); | ||
60 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 61 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
61 | QVERIFY(workspaceCreatedSpy.isValid()); | 62 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
62 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 63 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
63 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 64 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
64 | 65 | | |||
▲ Show 20 Lines • Show All 185 Lines • Show Last 20 Lines |