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