diff options
| author | Marco Trevisan (TreviƱo) <mail@3v1n0.net> | 2013-03-19 23:32:52 +0000 |
|---|---|---|
| committer | Tarmac <> | 2013-03-19 23:32:52 +0000 |
| commit | dc0bc161fca566ef5537c6d69f8ec56b37e898bf (patch) | |
| tree | 9352a24a847297b795dbe87d218377507ec3e00f /tests | |
| parent | 2eddf30506d912c8f946f8b27e76e69cbc81fe64 (diff) | |
| parent | a355fd464d0b15da9483442f3e8754e2e53c8f45 (diff) | |
SessionController: request overlay hiding on session view show. Fixes: https://bugs.launchpad.net/bugs/1155610.
Approved by PS Jenkins bot, Brandon Schaefer. (bzr r3237)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_session_controller.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_session_controller.cpp b/tests/test_session_controller.cpp index 34c9b67e5..36a6bdd23 100644 --- a/tests/test_session_controller.cpp +++ b/tests/test_session_controller.cpp @@ -22,7 +22,9 @@ #include <NuxCore/AnimationController.h> #include "test_mock_session_manager.h" #include "SessionController.h" +#include "UBusMessages.h" #include "UnitySettings.h" +#include "test_utils.h" namespace unity { @@ -74,6 +76,16 @@ TEST_P(/*TestSessionController*/ShowMode, Show) EXPECT_TRUE(controller.view_->live_background()); } +TEST_P(/*TestSessionController*/ShowMode, RequestsHideOverlay) +{ + UBusManager ubus; + bool request_hide = false; + ubus.RegisterInterest(UBUS_PLACE_VIEW_CLOSE_REQUEST, [&request_hide] (GVariant*) { request_hide = true; }); + + controller.Show(GetParam()); + Utils::WaitUntilMSec(request_hide); +} + TEST_F(TestSessionController, Hide) { controller.Show(View::Mode::FULL); |
