Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/tabbox_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 "cursor.h" | 22 | #include "cursor.h" | ||
22 | #include "input.h" | 23 | #include "input.h" | ||
23 | #include "platform.h" | 24 | #include "platform.h" | ||
24 | #include "screens.h" | 25 | #include "screens.h" | ||
25 | #include "xdgshellclient.h" | | |||
26 | #include "tabbox/tabbox.h" | 26 | #include "tabbox/tabbox.h" | ||
27 | #include "wayland_server.h" | 27 | #include "wayland_server.h" | ||
28 | #include "workspace.h" | 28 | #include "workspace.h" | ||
29 | 29 | | |||
30 | #include <KWayland/Client/surface.h> | 30 | #include <KWayland/Client/surface.h> | ||
31 | #include <KConfigGroup> | 31 | #include <KConfigGroup> | ||
32 | 32 | | |||
33 | #include <linux/input.h> | 33 | #include <linux/input.h> | ||
Show All 13 Lines | 43 | private Q_SLOTS: | |||
47 | 47 | | |||
48 | void testMoveForward(); | 48 | void testMoveForward(); | ||
49 | void testMoveBackward(); | 49 | void testMoveBackward(); | ||
50 | void testCapsLock(); | 50 | void testCapsLock(); | ||
51 | }; | 51 | }; | ||
52 | 52 | | |||
53 | void TabBoxTest::initTestCase() | 53 | void TabBoxTest::initTestCase() | ||
54 | { | 54 | { | ||
55 | qRegisterMetaType<KWin::XdgShellClient *>(); | | |||
56 | qRegisterMetaType<KWin::AbstractClient*>(); | 55 | qRegisterMetaType<KWin::AbstractClient*>(); | ||
57 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | 56 | QSignalSpy workspaceCreatedSpy(kwinApp(), &Application::workspaceCreated); | ||
58 | QVERIFY(workspaceCreatedSpy.isValid()); | 57 | QVERIFY(workspaceCreatedSpy.isValid()); | ||
59 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | 58 | kwinApp()->platform()->setInitialWindowSize(QSize(1280, 1024)); | ||
60 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | 59 | QVERIFY(waylandServer()->init(s_socketName.toLocal8Bit())); | ||
61 | 60 | | |||
62 | KSharedConfigPtr c = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | 61 | KSharedConfigPtr c = KSharedConfig::openConfig(QString(), KConfig::SimpleConfig); | ||
63 | c->group("TabBox").writeEntry("ShowTabBox", false); | 62 | c->group("TabBox").writeEntry("ShowTabBox", false); | ||
▲ Show 20 Lines • Show All 193 Lines • Show Last 20 Lines |