Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/globalshortcuts_test.cpp
Show First 20 Lines • Show All 286 Lines • ▼ Show 20 Line(s) | 282 | { | |||
---|---|---|---|---|---|
287 | QCOMPARE(workspace()->activeClient(), client); | 287 | QCOMPARE(workspace()->activeClient(), client); | ||
288 | QVERIFY(client->isActive()); | 288 | QVERIFY(client->isActive()); | ||
289 | QCOMPARE(client->shortcut(), QKeySequence()); | 289 | QCOMPARE(client->shortcut(), QKeySequence()); | ||
290 | const QKeySequence seq(Qt::META + Qt::SHIFT + Qt::Key_Y); | 290 | const QKeySequence seq(Qt::META + Qt::SHIFT + Qt::Key_Y); | ||
291 | QVERIFY(workspace()->shortcutAvailable(seq)); | 291 | QVERIFY(workspace()->shortcutAvailable(seq)); | ||
292 | client->setShortcut(seq.toString()); | 292 | client->setShortcut(seq.toString()); | ||
293 | QCOMPARE(client->shortcut(), seq); | 293 | QCOMPARE(client->shortcut(), seq); | ||
294 | QVERIFY(!workspace()->shortcutAvailable(seq)); | 294 | QVERIFY(!workspace()->shortcutAvailable(seq)); | ||
295 | QEXPECT_FAIL("", "Caption adjustment not yet implemented", Continue); | | |||
296 | QCOMPARE(client->caption(), QStringLiteral(" {Meta+Shift+Y}")); | 295 | QCOMPARE(client->caption(), QStringLiteral(" {Meta+Shift+Y}")); | ||
297 | 296 | | |||
298 | workspace()->activateClient(nullptr); | 297 | workspace()->activateClient(nullptr); | ||
299 | QVERIFY(!workspace()->activeClient()); | 298 | QVERIFY(!workspace()->activeClient()); | ||
300 | QVERIFY(!client->isActive()); | 299 | QVERIFY(!client->isActive()); | ||
301 | 300 | | |||
302 | // now let's trigger the shortcut | 301 | // now let's trigger the shortcut | ||
303 | quint32 timestamp = 0; | 302 | quint32 timestamp = 0; | ||
Show All 17 Lines |