Changeset View
Changeset View
Standalone View
Standalone View
autotests/integration/activation_test.cpp
Show First 20 Lines • Show All 396 Lines • ▼ Show 20 Line(s) | 365 | { | |||
---|---|---|---|---|---|
397 | workspace()->slotWindowMaximize(); | 397 | workspace()->slotWindowMaximize(); | ||
398 | QVERIFY(configureRequestedSpy2.wait()); | 398 | QVERIFY(configureRequestedSpy2.wait()); | ||
399 | QSignalSpy geometryChangedSpy2(client2, &XdgShellClient::geometryChanged); | 399 | QSignalSpy geometryChangedSpy2(client2, &XdgShellClient::geometryChanged); | ||
400 | QVERIFY(geometryChangedSpy2.isValid()); | 400 | QVERIFY(geometryChangedSpy2.isValid()); | ||
401 | shellSurface2->ackConfigure(configureRequestedSpy2.last().at(2).value<quint32>()); | 401 | shellSurface2->ackConfigure(configureRequestedSpy2.last().at(2).value<quint32>()); | ||
402 | Test::render(surface2.data(), configureRequestedSpy2.last().at(0).toSize(), Qt::red); | 402 | Test::render(surface2.data(), configureRequestedSpy2.last().at(0).toSize(), Qt::red); | ||
403 | QVERIFY(geometryChangedSpy2.wait()); | 403 | QVERIFY(geometryChangedSpy2.wait()); | ||
404 | 404 | | |||
405 | const ToplevelList stackingOrder = workspace()->stackingOrder(); | 405 | const QList<Toplevel *> stackingOrder = workspace()->stackingOrder(); | ||
406 | QVERIFY(stackingOrder.indexOf(client1) < stackingOrder.indexOf(client2)); | 406 | QVERIFY(stackingOrder.indexOf(client1) < stackingOrder.indexOf(client2)); | ||
407 | QCOMPARE(client1->maximizeMode(), MaximizeFull); | 407 | QCOMPARE(client1->maximizeMode(), MaximizeFull); | ||
408 | QCOMPARE(client2->maximizeMode(), MaximizeFull); | 408 | QCOMPARE(client2->maximizeMode(), MaximizeFull); | ||
409 | 409 | | |||
410 | // Create several clients on the right screen. | 410 | // Create several clients on the right screen. | ||
411 | QScopedPointer<Surface> surface3(Test::createSurface()); | 411 | QScopedPointer<Surface> surface3(Test::createSurface()); | ||
412 | QScopedPointer<XdgShellSurface> shellSurface3(Test::createXdgShellStableSurface(surface3.data())); | 412 | QScopedPointer<XdgShellSurface> shellSurface3(Test::createXdgShellStableSurface(surface3.data())); | ||
413 | XdgShellClient *client3 = Test::renderAndWaitForShown(surface3.data(), QSize(100, 50), Qt::blue); | 413 | XdgShellClient *client3 = Test::renderAndWaitForShown(surface3.data(), QSize(100, 50), Qt::blue); | ||
▲ Show 20 Lines • Show All 68 Lines • ▼ Show 20 Line(s) | 450 | { | |||
482 | workspace()->slotWindowFullScreen(); | 482 | workspace()->slotWindowFullScreen(); | ||
483 | QVERIFY(configureRequestedSpy2.wait()); | 483 | QVERIFY(configureRequestedSpy2.wait()); | ||
484 | QSignalSpy geometryChangedSpy2(client2, &XdgShellClient::geometryChanged); | 484 | QSignalSpy geometryChangedSpy2(client2, &XdgShellClient::geometryChanged); | ||
485 | QVERIFY(geometryChangedSpy2.isValid()); | 485 | QVERIFY(geometryChangedSpy2.isValid()); | ||
486 | shellSurface2->ackConfigure(configureRequestedSpy2.last().at(2).value<quint32>()); | 486 | shellSurface2->ackConfigure(configureRequestedSpy2.last().at(2).value<quint32>()); | ||
487 | Test::render(surface2.data(), configureRequestedSpy2.last().at(0).toSize(), Qt::red); | 487 | Test::render(surface2.data(), configureRequestedSpy2.last().at(0).toSize(), Qt::red); | ||
488 | QVERIFY(geometryChangedSpy2.wait()); | 488 | QVERIFY(geometryChangedSpy2.wait()); | ||
489 | 489 | | |||
490 | const ToplevelList stackingOrder = workspace()->stackingOrder(); | 490 | const QList<Toplevel *> stackingOrder = workspace()->stackingOrder(); | ||
491 | QVERIFY(stackingOrder.indexOf(client1) < stackingOrder.indexOf(client2)); | 491 | QVERIFY(stackingOrder.indexOf(client1) < stackingOrder.indexOf(client2)); | ||
492 | QVERIFY(client1->isFullScreen()); | 492 | QVERIFY(client1->isFullScreen()); | ||
493 | QVERIFY(client2->isFullScreen()); | 493 | QVERIFY(client2->isFullScreen()); | ||
494 | 494 | | |||
495 | // Create several clients on the bottom screen. | 495 | // Create several clients on the bottom screen. | ||
496 | QScopedPointer<Surface> surface3(Test::createSurface()); | 496 | QScopedPointer<Surface> surface3(Test::createSurface()); | ||
497 | QScopedPointer<XdgShellSurface> shellSurface3(Test::createXdgShellStableSurface(surface3.data())); | 497 | QScopedPointer<XdgShellSurface> shellSurface3(Test::createXdgShellStableSurface(surface3.data())); | ||
498 | XdgShellClient *client3 = Test::renderAndWaitForShown(surface3.data(), QSize(100, 50), Qt::blue); | 498 | XdgShellClient *client3 = Test::renderAndWaitForShown(surface3.data(), QSize(100, 50), Qt::blue); | ||
▲ Show 20 Lines • Show All 87 Lines • Show Last 20 Lines |