Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/shell_client_rules_test.cpp
Show First 20 Lines • Show All 64 Lines • ▼ Show 20 Line(s) | |||||
65 | void TestShellClientRules::initTestCase() | 65 | void TestShellClientRules::initTestCase() | ||
66 | { | 66 | { | ||
67 | qRegisterMetaType<KWin::ShellClient*>(); | 67 | qRegisterMetaType<KWin::ShellClient*>(); | ||
68 | qRegisterMetaType<KWin::AbstractClient*>(); | 68 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
69 | 69 | | |||
70 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 70 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
71 | QVERIFY(workspaceCreatedSpy.isValid()); | 71 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
72 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 72 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
73 | QMetaObject::invokeMethod(kwinApp()->platform(), "setOutputCount", Qt::DirectConnection, Q_ARG(int, 2)); | 73 | QMetaObject::invokeMethod(kwinApp()->platform(), "setVirtualOutputs", Qt::DirectConnection, Q_ARG(int, 2)); | ||
74 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 74 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
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)); | ||
81 | waylandServer()->initWorkspace(); | 81 | waylandServer()->initWorkspace(); | ||
▲ Show 20 Lines • Show All 310 Lines • Show Last 20 Lines |