Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/decoration_input_test.cpp
Show First 20 Lines • Show All 164 Lines • ▼ Show 20 Line(s) | |||||
165 | { | 165 | { | ||
166 | QTest::addColumn<QPoint>("decoPoint"); | 166 | QTest::addColumn<QPoint>("decoPoint"); | ||
167 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | 167 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | ||
168 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 168 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
169 | 169 | | |||
170 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | 170 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | ||
171 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | 171 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | ||
172 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | 172 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | ||
173 | QTest::newRow("topLeft|xdg") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | 173 | QTest::newRow("topLeft|xdgv5") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | ||
174 | QTest::newRow("top|xdg") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | 174 | QTest::newRow("top|xdgv5") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | ||
175 | QTest::newRow("topRight|xdg") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | 175 | QTest::newRow("topRight|xdgv5") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | ||
176 | QTest::newRow("topLeft|xdgv6") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV6; | ||||
177 | QTest::newRow("top|xdgv6") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV6; | ||||
178 | QTest::newRow("topRight|xdgv6") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV6; | ||||
176 | } | 179 | } | ||
177 | 180 | | |||
178 | void DecorationInputTest::testAxis() | 181 | void DecorationInputTest::testAxis() | ||
179 | { | 182 | { | ||
180 | QFETCH(Test::ShellSurfaceType, type); | 183 | QFETCH(Test::ShellSurfaceType, type); | ||
181 | AbstractClient *c = showWindow(type); | 184 | AbstractClient *c = showWindow(type); | ||
182 | QVERIFY(c); | 185 | QVERIFY(c); | ||
183 | QVERIFY(c->isDecorated()); | 186 | QVERIFY(c->isDecorated()); | ||
Show All 35 Lines | |||||
219 | { | 222 | { | ||
220 | QTest::addColumn<QPoint>("decoPoint"); | 223 | QTest::addColumn<QPoint>("decoPoint"); | ||
221 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | 224 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | ||
222 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 225 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
223 | 226 | | |||
224 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | 227 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | ||
225 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | 228 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | ||
226 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | 229 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | ||
227 | QTest::newRow("topLeft|xdg") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | 230 | QTest::newRow("topLeft|xdgv5") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | ||
228 | QTest::newRow("top|xdg") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | 231 | QTest::newRow("top|xdgv5") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | ||
229 | QTest::newRow("topRight|xdg") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | 232 | QTest::newRow("topRight|xdgv5") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | ||
233 | QTest::newRow("topLeft|xdgv6") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV6; | ||||
234 | QTest::newRow("top|xdgv6") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV6; | ||||
235 | QTest::newRow("topRight|xdgv6") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV6; | ||||
230 | } | 236 | } | ||
231 | 237 | | |||
232 | void KWin::DecorationInputTest::testDoubleClick() | 238 | void KWin::DecorationInputTest::testDoubleClick() | ||
233 | { | 239 | { | ||
234 | QFETCH(Test::ShellSurfaceType, type); | 240 | QFETCH(Test::ShellSurfaceType, type); | ||
235 | AbstractClient *c = showWindow(type); | 241 | AbstractClient *c = showWindow(type); | ||
236 | QVERIFY(c); | 242 | QVERIFY(c); | ||
237 | QVERIFY(c->isDecorated()); | 243 | QVERIFY(c->isDecorated()); | ||
Show All 36 Lines | |||||
274 | { | 280 | { | ||
275 | QTest::addColumn<QPoint>("decoPoint"); | 281 | QTest::addColumn<QPoint>("decoPoint"); | ||
276 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | 282 | QTest::addColumn<Qt::WindowFrameSection>("expectedSection"); | ||
277 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 283 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
278 | 284 | | |||
279 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | 285 | QTest::newRow("topLeft") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::WlShell; | ||
280 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | 286 | QTest::newRow("top") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::WlShell; | ||
281 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | 287 | QTest::newRow("topRight") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::WlShell; | ||
282 | QTest::newRow("topLeft|xdg") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | 288 | QTest::newRow("topLeft|xdgv5") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV5; | ||
283 | QTest::newRow("top|xdg") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | 289 | QTest::newRow("top|xdgv5") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV5; | ||
284 | QTest::newRow("topRight|xdg") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | 290 | QTest::newRow("topRight|xdgv5") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV5; | ||
291 | QTest::newRow("topLeft|xdgv6") << QPoint(0, 0) << Qt::TopLeftSection << Test::ShellSurfaceType::XdgShellV6; | ||||
292 | QTest::newRow("top|xdgv6") << QPoint(250, 0) << Qt::TopSection << Test::ShellSurfaceType::XdgShellV6; | ||||
293 | QTest::newRow("topRight|xdgv6") << QPoint(499, 0) << Qt::TopRightSection << Test::ShellSurfaceType::XdgShellV6; | ||||
294 | | ||||
285 | } | 295 | } | ||
286 | 296 | | |||
287 | void KWin::DecorationInputTest::testDoubleTap() | 297 | void KWin::DecorationInputTest::testDoubleTap() | ||
288 | { | 298 | { | ||
289 | QFETCH(Test::ShellSurfaceType, type); | 299 | QFETCH(Test::ShellSurfaceType, type); | ||
290 | AbstractClient *c = showWindow(type); | 300 | AbstractClient *c = showWindow(type); | ||
291 | QVERIFY(c); | 301 | QVERIFY(c); | ||
292 | QVERIFY(c->isDecorated()); | 302 | QVERIFY(c->isDecorated()); | ||
Show All 32 Lines | |||||
325 | } | 335 | } | ||
326 | 336 | | |||
327 | void DecorationInputTest::testHover_data() | 337 | void DecorationInputTest::testHover_data() | ||
328 | { | 338 | { | ||
329 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 339 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
330 | 340 | | |||
331 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | 341 | QTest::newRow("wlShell") << Test::ShellSurfaceType::WlShell; | ||
332 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | 342 | QTest::newRow("xdgShellV5") << Test::ShellSurfaceType::XdgShellV5; | ||
343 | QTest::newRow("xdgShellV6") << Test::ShellSurfaceType::XdgShellV6; | ||||
333 | } | 344 | } | ||
334 | 345 | | |||
335 | void DecorationInputTest::testHover() | 346 | void DecorationInputTest::testHover() | ||
336 | { | 347 | { | ||
337 | QFETCH(Test::ShellSurfaceType, type); | 348 | QFETCH(Test::ShellSurfaceType, type); | ||
338 | AbstractClient *c = showWindow(type); | 349 | AbstractClient *c = showWindow(type); | ||
339 | QVERIFY(c); | 350 | QVERIFY(c); | ||
340 | QVERIFY(c->isDecorated()); | 351 | QVERIFY(c->isDecorated()); | ||
Show All 34 Lines | 384 | { | |||
375 | QTest::addColumn<QPoint>("offset2"); | 386 | QTest::addColumn<QPoint>("offset2"); | ||
376 | QTest::addColumn<QPoint>("offset3"); | 387 | QTest::addColumn<QPoint>("offset3"); | ||
377 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 388 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
378 | 389 | | |||
379 | QTest::newRow("To right") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::WlShell; | 390 | QTest::newRow("To right") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::WlShell; | ||
380 | QTest::newRow("To left") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::WlShell; | 391 | QTest::newRow("To left") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::WlShell; | ||
381 | QTest::newRow("To bottom") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::WlShell; | 392 | QTest::newRow("To bottom") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::WlShell; | ||
382 | QTest::newRow("To top") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::WlShell; | 393 | QTest::newRow("To top") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::WlShell; | ||
383 | QTest::newRow("To right|xdg") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV5; | 394 | QTest::newRow("To right|xdgv5") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV5; | ||
384 | QTest::newRow("To left|xdg") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV5; | 395 | QTest::newRow("To left|xdgv5") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV5; | ||
385 | QTest::newRow("To bottom|xdg") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV5; | 396 | QTest::newRow("To bottom|xdgv5") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV5; | ||
386 | QTest::newRow("To top|xdg") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV5; | 397 | QTest::newRow("To top|xdgv5") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV5; | ||
398 | QTest::newRow("To right|xdgv6") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV6; | ||||
399 | QTest::newRow("To left|xdgv6") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV6; | ||||
400 | QTest::newRow("To bottom|xdgv6") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV6; | ||||
401 | QTest::newRow("To top|xdgv6") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV6; | ||||
387 | } | 402 | } | ||
388 | 403 | | |||
389 | void DecorationInputTest::testPressToMove() | 404 | void DecorationInputTest::testPressToMove() | ||
390 | { | 405 | { | ||
391 | QFETCH(Test::ShellSurfaceType, type); | 406 | QFETCH(Test::ShellSurfaceType, type); | ||
392 | AbstractClient *c = showWindow(type); | 407 | AbstractClient *c = showWindow(type); | ||
393 | QVERIFY(c); | 408 | QVERIFY(c); | ||
394 | QVERIFY(c->isDecorated()); | 409 | QVERIFY(c->isDecorated()); | ||
▲ Show 20 Lines • Show All 45 Lines • ▼ Show 20 Line(s) | 453 | { | |||
440 | QTest::addColumn<QPoint>("offset2"); | 455 | QTest::addColumn<QPoint>("offset2"); | ||
441 | QTest::addColumn<QPoint>("offset3"); | 456 | QTest::addColumn<QPoint>("offset3"); | ||
442 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 457 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
443 | 458 | | |||
444 | QTest::newRow("To right") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::WlShell; | 459 | QTest::newRow("To right") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::WlShell; | ||
445 | QTest::newRow("To left") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::WlShell; | 460 | QTest::newRow("To left") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::WlShell; | ||
446 | QTest::newRow("To bottom") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::WlShell; | 461 | QTest::newRow("To bottom") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::WlShell; | ||
447 | QTest::newRow("To top") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::WlShell; | 462 | QTest::newRow("To top") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::WlShell; | ||
448 | QTest::newRow("To right|xdg") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV5; | 463 | QTest::newRow("To right|xdgv5") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV5; | ||
449 | QTest::newRow("To left|xdg") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV5; | 464 | QTest::newRow("To left|xdgv5") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV5; | ||
450 | QTest::newRow("To bottom|xdg") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV5; | 465 | QTest::newRow("To bottom|xdgv5") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV5; | ||
451 | QTest::newRow("To top|xdg") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV5; | 466 | QTest::newRow("To top|xdgv5") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV5; | ||
467 | QTest::newRow("To right|xdgv6") << QPoint(10, 0) << QPoint(20, 0) << QPoint(30, 0) << Test::ShellSurfaceType::XdgShellV6; | ||||
468 | QTest::newRow("To left|xdgv6") << QPoint(-10, 0) << QPoint(-20, 0) << QPoint(-30, 0) << Test::ShellSurfaceType::XdgShellV6; | ||||
469 | QTest::newRow("To bottom|xdgv6") << QPoint(0, 10) << QPoint(0, 20) << QPoint(0, 30) << Test::ShellSurfaceType::XdgShellV6; | ||||
470 | QTest::newRow("To top|xdgv6") << QPoint(0, -10) << QPoint(0, -20) << QPoint(0, -30) << Test::ShellSurfaceType::XdgShellV6; | ||||
452 | } | 471 | } | ||
453 | 472 | | |||
454 | void DecorationInputTest::testTapToMove() | 473 | void DecorationInputTest::testTapToMove() | ||
455 | { | 474 | { | ||
456 | QFETCH(Test::ShellSurfaceType, type); | 475 | QFETCH(Test::ShellSurfaceType, type); | ||
457 | AbstractClient *c = showWindow(type); | 476 | AbstractClient *c = showWindow(type); | ||
458 | QVERIFY(c); | 477 | QVERIFY(c); | ||
459 | QVERIFY(c->isDecorated()); | 478 | QVERIFY(c->isDecorated()); | ||
▲ Show 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
503 | void DecorationInputTest::testResizeOutsideWindow_data() | 522 | void DecorationInputTest::testResizeOutsideWindow_data() | ||
504 | { | 523 | { | ||
505 | QTest::addColumn<Test::ShellSurfaceType>("type"); | 524 | QTest::addColumn<Test::ShellSurfaceType>("type"); | ||
506 | QTest::addColumn<Qt::Edge>("edge"); | 525 | QTest::addColumn<Qt::Edge>("edge"); | ||
507 | QTest::addColumn<Qt::CursorShape>("expectedCursor"); | 526 | QTest::addColumn<Qt::CursorShape>("expectedCursor"); | ||
508 | 527 | | |||
509 | QTest::newRow("wlShell - left") << Test::ShellSurfaceType::WlShell << Qt::LeftEdge << Qt::SizeHorCursor; | 528 | QTest::newRow("wlShell - left") << Test::ShellSurfaceType::WlShell << Qt::LeftEdge << Qt::SizeHorCursor; | ||
510 | QTest::newRow("xdgShellV5 - left") << Test::ShellSurfaceType::XdgShellV5 << Qt::LeftEdge << Qt::SizeHorCursor; | 529 | QTest::newRow("xdgShellV5 - left") << Test::ShellSurfaceType::XdgShellV5 << Qt::LeftEdge << Qt::SizeHorCursor; | ||
530 | QTest::newRow("xdgShellV6 - left") << Test::ShellSurfaceType::XdgShellV6 << Qt::LeftEdge << Qt::SizeHorCursor; | ||||
511 | QTest::newRow("wlShell - right") << Test::ShellSurfaceType::WlShell << Qt::RightEdge << Qt::SizeHorCursor; | 531 | QTest::newRow("wlShell - right") << Test::ShellSurfaceType::WlShell << Qt::RightEdge << Qt::SizeHorCursor; | ||
512 | QTest::newRow("xdgShellV5 - right") << Test::ShellSurfaceType::XdgShellV5 << Qt::RightEdge << Qt::SizeHorCursor; | 532 | QTest::newRow("xdgShellV5 - right") << Test::ShellSurfaceType::XdgShellV5 << Qt::RightEdge << Qt::SizeHorCursor; | ||
533 | QTest::newRow("xdgShellV6 - right") << Test::ShellSurfaceType::XdgShellV6 << Qt::RightEdge << Qt::SizeHorCursor; | ||||
513 | QTest::newRow("wlShell - bottom") << Test::ShellSurfaceType::WlShell << Qt::BottomEdge << Qt::SizeVerCursor; | 534 | QTest::newRow("wlShell - bottom") << Test::ShellSurfaceType::WlShell << Qt::BottomEdge << Qt::SizeVerCursor; | ||
514 | QTest::newRow("xdgShellV5 - bottom") << Test::ShellSurfaceType::XdgShellV5 << Qt::BottomEdge << Qt::SizeVerCursor; | 535 | QTest::newRow("xdgShellV5 - bottom") << Test::ShellSurfaceType::XdgShellV5 << Qt::BottomEdge << Qt::SizeVerCursor; | ||
536 | QTest::newRow("xdgShellV6 - bottom") << Test::ShellSurfaceType::XdgShellV6 << Qt::BottomEdge << Qt::SizeVerCursor; | ||||
515 | } | 537 | } | ||
516 | 538 | | |||
517 | void DecorationInputTest::testResizeOutsideWindow() | 539 | void DecorationInputTest::testResizeOutsideWindow() | ||
518 | { | 540 | { | ||
519 | // this test verifies that one can resize the window outside the decoration with NoSideBorder | 541 | // this test verifies that one can resize the window outside the decoration with NoSideBorder | ||
520 | 542 | | |||
521 | // first adjust config | 543 | // first adjust config | ||
522 | kwinApp()->config()->group("org.kde.kdecoration2").writeEntry("BorderSize", QStringLiteral("None")); | 544 | kwinApp()->config()->group("org.kde.kdecoration2").writeEntry("BorderSize", QStringLiteral("None")); | ||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |