Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/window_selection_test.cpp
Show First 20 Lines • Show All 63 Lines • ▼ Show 20 Line(s) | |||||
64 | 64 | | |||
65 | void TestWindowSelection::initTestCase() | 65 | void TestWindowSelection::initTestCase() | ||
66 | { | 66 | { | ||
67 | qRegisterMetaType<KWin::ShellClient*>(); | 67 | qRegisterMetaType<KWin::ShellClient*>(); | ||
68 | qRegisterMetaType<KWin::AbstractClient*>(); | 68 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
69 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 69 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
70 | QVERIFY(workspaceCreatedSpy.isValid()); | 70 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
71 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 71 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
72 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 72 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
73 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 73 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
74 | qputenv("XKB_DEFAULT_RULES", "evdev"); | 74 | qputenv("XKB_DEFAULT_RULES", "evdev"); | ||
75 | 75 | | |||
76 | kwinApp()->start(); | 76 | kwinApp()->start(); | ||
77 | QVERIFY(workspaceCreatedSpy.wait()); | 77 | QVERIFY(workspaceCreatedSpy.wait()); | ||
78 | QCOMPARE(screens()->count(), 2); | 78 | QCOMPARE(screens()->count(), 2); | ||
79 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | 79 | QCOMPARE(screens()->geometry(0), QRect(0, 0, 1280, 1024)); | ||
80 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | 80 | QCOMPARE(screens()->geometry(1), QRect(1280, 0, 1280, 1024)); | ||
▲ Show 20 Lines • Show All 479 Lines • Show Last 20 Lines |