Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/move_resize_window_test.cpp
Show First 20 Lines • Show All 310 Lines • ▼ Show 20 Line(s) | 203 | { | |||
---|---|---|---|---|---|
311 | 311 | | |||
312 | // Let's finalize the resize operation. | 312 | // Let's finalize the resize operation. | ||
313 | QCOMPARE(clientFinishUserMovedResizedSpy.count(), 0); | 313 | QCOMPARE(clientFinishUserMovedResizedSpy.count(), 0); | ||
314 | c->keyPressEvent(Qt::Key_Enter); | 314 | c->keyPressEvent(Qt::Key_Enter); | ||
315 | QCOMPARE(clientFinishUserMovedResizedSpy.count(), 1); | 315 | QCOMPARE(clientFinishUserMovedResizedSpy.count(), 1); | ||
316 | QCOMPARE(moveResizedChangedSpy.count(), 2); | 316 | QCOMPARE(moveResizedChangedSpy.count(), 2); | ||
317 | QCOMPARE(c->isResize(), false); | 317 | QCOMPARE(c->isResize(), false); | ||
318 | QCOMPARE(workspace()->moveResizeClient(), nullptr); | 318 | QCOMPARE(workspace()->moveResizeClient(), nullptr); | ||
319 | QEXPECT_FAIL("", "XdgShellClient currently doesn't send final configure event", Abort); | | |||
320 | QVERIFY(configureRequestedSpy.wait()); | 319 | QVERIFY(configureRequestedSpy.wait()); | ||
321 | QCOMPARE(configureRequestedSpy.count(), 6); | 320 | QCOMPARE(configureRequestedSpy.count(), 6); | ||
322 | states = configureRequestedSpy.last().at(1).value<XdgShellSurface::States>(); | 321 | states = configureRequestedSpy.last().at(1).value<XdgShellSurface::States>(); | ||
323 | QVERIFY(states.testFlag(XdgShellSurface::State::Activated)); | 322 | QVERIFY(states.testFlag(XdgShellSurface::State::Activated)); | ||
324 | QVERIFY(!states.testFlag(XdgShellSurface::State::Resizing)); | 323 | QVERIFY(!states.testFlag(XdgShellSurface::State::Resizing)); | ||
325 | 324 | | |||
326 | // Destroy the client. | 325 | // Destroy the client. | ||
327 | surface.reset(); | 326 | shellSurface.reset(); | ||
328 | QVERIFY(Test::waitForWindowDestroyed(c)); | 327 | QVERIFY(Test::waitForWindowDestroyed(c)); | ||
329 | } | 328 | } | ||
330 | 329 | | |||
331 | void MoveResizeWindowTest::testPackTo_data() | 330 | void MoveResizeWindowTest::testPackTo_data() | ||
332 | { | 331 | { | ||
333 | QTest::addColumn<QString>("methodCall"); | 332 | QTest::addColumn<QString>("methodCall"); | ||
334 | QTest::addColumn<QRect>("expectedGeometry"); | 333 | QTest::addColumn<QRect>("expectedGeometry"); | ||
335 | 334 | | |||
▲ Show 20 Lines • Show All 875 Lines • Show Last 20 Lines |