Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/showing_desktop_test.cpp
Show All 12 Lines | |||||
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
15 | GNU General Public License for more details. | 15 | GNU General Public License for more details. | ||
16 | 16 | | |||
17 | You should have received a copy of the GNU General Public License | 17 | You should have received a copy of the GNU General Public License | ||
18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | 18 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
19 | *********************************************************************/ | 19 | *********************************************************************/ | ||
20 | #include "kwin_wayland_test.h" | 20 | #include "kwin_wayland_test.h" | ||
21 | #include "abstract_client.h" | ||||
21 | #include "platform.h" | 22 | #include "platform.h" | ||
22 | #include "xdgshellclient.h" | | |||
23 | #include "wayland_server.h" | 23 | #include "wayland_server.h" | ||
24 | #include "workspace.h" | 24 | #include "workspace.h" | ||
25 | 25 | | |||
26 | #include <KWayland/Client/plasmashell.h> | 26 | #include <KWayland/Client/plasmashell.h> | ||
27 | #include <KWayland/Client/surface.h> | 27 | #include <KWayland/Client/surface.h> | ||
28 | 28 | | |||
29 | using namespace KWin; | 29 | using namespace KWin; | ||
30 | using namespace KWayland::Client; | 30 | using namespace KWayland::Client; | ||
Show All 9 Lines | 37 | private Q_SLOTS: | |||
40 | void cleanup(); | 40 | void cleanup(); | ||
41 | 41 | | |||
42 | void testRestoreFocus(); | 42 | void testRestoreFocus(); | ||
43 | void testRestoreFocusWithDesktopWindow(); | 43 | void testRestoreFocusWithDesktopWindow(); | ||
44 | }; | 44 | }; | ||
45 | 45 | | |||
46 | void ShowingDesktopTest::initTestCase() | 46 | void ShowingDesktopTest::initTestCase() | ||
47 | { | 47 | { | ||
48 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
49 | qRegisterMetaType<KWin::AbstractClient*>(); | 48 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
50 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 49 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
51 | QVERIFY(workspaceCreatedSpy.isValid()); | 50 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
52 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 51 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
53 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 52 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
54 | 53 | | |||
55 | kwinApp()->start(); | 54 | kwinApp()->start(); | ||
56 | QVERIFY(workspaceCreatedSpy.wait()); | 55 | QVERIFY(workspaceCreatedSpy.wait()); | ||
▲ Show 20 Lines • Show All 71 Lines • Show Last 20 Lines |