Changeset View
Changeset View
Standalone View
Standalone View
autotests/testkwaylandbackend.cpp
Show First 20 Lines • Show All 183 Lines • ▼ Show 20 Line(s) | |||||
184 | } | 184 | } | ||
185 | 185 | | |||
186 | void testWaylandBackend::simpleWrite() | 186 | void testWaylandBackend::simpleWrite() | ||
187 | { | 187 | { | ||
188 | KScreen::BackendManager::instance()->shutdownBackend(); | 188 | KScreen::BackendManager::instance()->shutdownBackend(); | ||
189 | GetConfigOperation *op = new GetConfigOperation(); | 189 | GetConfigOperation *op = new GetConfigOperation(); | ||
190 | op->exec(); | 190 | op->exec(); | ||
191 | m_config = op->config(); | 191 | m_config = op->config(); | ||
192 | auto output = m_config->output(1); | 192 | auto output = m_config->output(3); | ||
193 | QVERIFY(output); | ||||
193 | auto n_mode = QStringLiteral("800x600@60"); | 194 | auto n_mode = QStringLiteral("800x600@60"); | ||
194 | auto o_mode = output->currentModeId(); | 195 | auto o_mode = output->currentModeId(); | ||
195 | output->setCurrentModeId(n_mode); | 196 | output->setCurrentModeId(n_mode); | ||
196 | 197 | | |||
197 | auto setop = new SetConfigOperation(m_config); | 198 | auto setop = new SetConfigOperation(m_config); | ||
198 | QVERIFY(setop->exec()); | 199 | QVERIFY(setop->exec()); | ||
199 | } | 200 | } | ||
200 | 201 | | |||
▲ Show 20 Lines • Show All 116 Lines • Show Last 20 Lines |