Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shade_test.cpp
Show First 20 Lines • Show All 48 Lines • ▼ Show 20 Line(s) | |||||
49 | 49 | | |||
50 | void ShadeTest::initTestCase() | 50 | void ShadeTest::initTestCase() | ||
51 | { | 51 | { | ||
52 | qRegisterMetaType<KWin::ShellClient*>(); | 52 | qRegisterMetaType<KWin::ShellClient*>(); | ||
53 | qRegisterMetaType<KWin::AbstractClient*>(); | 53 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
54 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 54 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
55 | QVERIFY(workspaceCreatedSpy.isValid()); | 55 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
56 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 56 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
57 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | | |||
58 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 57 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
58 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||||
59 | 59 | | |||
60 | kwinApp()->start(); | 60 | kwinApp()->start(); | ||
61 | QVERIFY(workspaceCreatedSpy.wait()); | 61 | QVERIFY(workspaceCreatedSpy.wait()); | ||
62 | QCOMPARE(screens()->count(), 2); | 62 | QCOMPARE(screens()->count(), 2); | ||
63 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 63 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
64 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 64 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
65 | setenv("QT_QPA_PLATFORM", "wayland", true); | 65 | setenv("QT_QPA_PLATFORM", "wayland", true); | ||
66 | waylandServer()->initWorkspace(); | 66 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 77 Lines • Show Last 20 Lines |