From ab68697fe59d8649b2db2771df9b1da04b60543a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 12 Sep 2016 10:01:02 +0200 Subject: [PATCH] [autotests/integration] Extend TestShellClient::tetsMinimizeActiveWindow Adds QEXPECT_FAIL cases for wantsInput and wantsTabFocus of a minimized window. CCBUG: 368673 --- autotests/integration/shell_client_test.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/autotests/integration/shell_client_test.cpp b/autotests/integration/shell_client_test.cpp index f46a76f8f5..deeaa08c10 100644 --- a/autotests/integration/shell_client_test.cpp +++ b/autotests/integration/shell_client_test.cpp @@ -267,8 +267,16 @@ void TestShellClient::testMinimizeActiveWindow() QVERIFY(c); QVERIFY(c->isActive()); QCOMPARE(workspace()->activeClient(), c); + QVERIFY(c->wantsInput()); + QVERIFY(c->wantsTabFocus()); + QVERIFY(c->isShown(true)); workspace()->slotWindowMinimize(); + QVERIFY(!c->isShown(true)); + QEXPECT_FAIL("wlShell", "BUG 368673", Continue); + QVERIFY(c->wantsInput()); + QEXPECT_FAIL("wlShell", "BUG 368673", Continue); + QVERIFY(c->wantsTabFocus()); QVERIFY(!c->isActive()); QVERIFY(!workspace()->activeClient()); QVERIFY(c->isMinimized()); @@ -277,6 +285,9 @@ void TestShellClient::testMinimizeActiveWindow() c->unminimize(); QVERIFY(!c->isMinimized()); QVERIFY(c->isActive()); + QVERIFY(c->wantsInput()); + QVERIFY(c->wantsTabFocus()); + QVERIFY(c->isShown(true)); QCOMPARE(workspace()->activeClient(), c); }