diff options
| author | Sami Jaktholm <sjakthol@outlook.com> | 2014-04-10 17:42:42 +0000 |
|---|---|---|
| committer | CI bot <ps-jenkins@lists.canonical.com> | 2014-04-10 17:42:42 +0000 |
| commit | 4b9c198e0f41de5288f159dc3fedaabd69453a6c (patch) | |
| tree | 89bec86248ab23bff3196d025f58ffd31f4fc7f0 /tests | |
| parent | 7348f87e2912dc59318a194a25b199a3bfd95450 (diff) | |
| parent | a5a8ee7032d73dad5ce7253526eef20d8cf7edf6 (diff) | |
Shortcuts: Listen and react to view close requests. Fixes: 1297842
(bzr r3771)
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_shortcut_controller.cpp | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/test_shortcut_controller.cpp b/tests/test_shortcut_controller.cpp index 5a0498493..90931d6f6 100644 --- a/tests/test_shortcut_controller.cpp +++ b/tests/test_shortcut_controller.cpp @@ -219,5 +219,17 @@ TEST_F(TestShortcutController, UnsetFirstRunOnHide) EXPECT_FALSE(controller_.view_->closable()); } +TEST_F(TestShortcutController, CloseRequestIsHandled) +{ + controller_.first_run = true; + controller_.ConstructView(); + controller_.Show(); + controller_.OnShowTimer(); + tick_source_.tick(100 * 1000); + controller_.view_->request_close.emit(); + + EXPECT_FALSE(controller_.Visible()); +} + } } |
