Changeset View
Changeset View
Standalone View
Standalone View
autotests/netwininfotestclient.cpp
Show First 20 Lines • Show All 61 Lines • ▼ Show 20 Line(s) | 55 | private Q_SLOTS: | |||
---|---|---|---|---|---|
62 | void testUserTime(); | 62 | void testUserTime(); | ||
63 | void testStartupId(); | 63 | void testStartupId(); | ||
64 | void testDesktopFileName(); | 64 | void testDesktopFileName(); | ||
65 | void testHandledIcons_data(); | 65 | void testHandledIcons_data(); | ||
66 | void testHandledIcons(); | 66 | void testHandledIcons(); | ||
67 | void testPid(); | 67 | void testPid(); | ||
68 | void testName(); | 68 | void testName(); | ||
69 | void testIconName(); | 69 | void testIconName(); | ||
70 | #if KWINDOWSYSTEM_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
70 | void testStrut(); | 71 | void testStrut(); | ||
72 | #endif | ||||
71 | void testExtendedStrut(); | 73 | void testExtendedStrut(); | ||
72 | void testIconGeometry(); | 74 | void testIconGeometry(); | ||
73 | void testWindowType_data(); | 75 | void testWindowType_data(); | ||
74 | void testWindowType(); | 76 | void testWindowType(); | ||
75 | 77 | | |||
76 | void testActivities_data(); | 78 | void testActivities_data(); | ||
77 | void testActivities(); | 79 | void testActivities(); | ||
78 | void testWindowRole(); | 80 | void testWindowRole(); | ||
▲ Show 20 Lines • Show All 323 Lines • ▼ Show 20 Line(s) | |||||
402 | 404 | | |||
403 | void NetWinInfoTestClient::testName() | 405 | void NetWinInfoTestClient::testName() | ||
404 | { | 406 | { | ||
405 | QVERIFY(connection()); | 407 | QVERIFY(connection()); | ||
406 | ATOM(_NET_WM_NAME) | 408 | ATOM(_NET_WM_NAME) | ||
407 | performNameTest(atom, &NETWinInfo::name, &NETWinInfo::setName, NET::WMName); | 409 | performNameTest(atom, &NETWinInfo::name, &NETWinInfo::setName, NET::WMName); | ||
408 | } | 410 | } | ||
409 | 411 | | |||
412 | #if KWINDOWSYSTEM_ENABLE_DEPRECATED_SINCE(5, 0) | ||||
410 | void NetWinInfoTestClient::testStrut() | 413 | void NetWinInfoTestClient::testStrut() | ||
411 | { | 414 | { | ||
412 | QVERIFY(connection()); | 415 | QVERIFY(connection()); | ||
413 | ATOM(_NET_WM_STRUT) | 416 | ATOM(_NET_WM_STRUT) | ||
414 | INFO | 417 | INFO | ||
415 | 418 | | |||
416 | NETStrut extents = info.strut(); | 419 | NETStrut extents = info.strut(); | ||
417 | QCOMPARE(extents.bottom, 0); | 420 | QCOMPARE(extents.bottom, 0); | ||
Show All 25 Lines | |||||
443 | // and wait for our event | 446 | // and wait for our event | ||
444 | waitForPropertyChange(&info, atom, NET::WMStrut); | 447 | waitForPropertyChange(&info, atom, NET::WMStrut); | ||
445 | extents = info.strut(); | 448 | extents = info.strut(); | ||
446 | QCOMPARE(extents.bottom, newExtents.bottom); | 449 | QCOMPARE(extents.bottom, newExtents.bottom); | ||
447 | QCOMPARE(extents.left, newExtents.left); | 450 | QCOMPARE(extents.left, newExtents.left); | ||
448 | QCOMPARE(extents.right, newExtents.right); | 451 | QCOMPARE(extents.right, newExtents.right); | ||
449 | QCOMPARE(extents.top, newExtents.top); | 452 | QCOMPARE(extents.top, newExtents.top); | ||
450 | } | 453 | } | ||
454 | #endif | ||||
451 | 455 | | |||
452 | void NetWinInfoTestClient::testExtendedStrut() | 456 | void NetWinInfoTestClient::testExtendedStrut() | ||
453 | { | 457 | { | ||
454 | QVERIFY(connection()); | 458 | QVERIFY(connection()); | ||
455 | ATOM(_NET_WM_STRUT_PARTIAL) | 459 | ATOM(_NET_WM_STRUT_PARTIAL) | ||
456 | INFO | 460 | INFO | ||
457 | 461 | | |||
458 | NETExtendedStrut extents = info.extendedStrut(); | 462 | NETExtendedStrut extents = info.extendedStrut(); | ||
▲ Show 20 Lines • Show All 665 Lines • Show Last 20 Lines |