|
Lomiri
|


Public Member Functions | |
| setUp (self) | |
| test_interactive (self) | |
| test_sd_one_over_two_layout (self) | |
| test_modal_sd_without_greeter (self) | |
| test_modal_sd_with_greeter (self) | |
| assert_notification_action_id_was_called (self, action_id, timeout=10) | |
| Public Member Functions inherited from lomiri.shell.tests.LomiriTestCase | |
| setUpClass (cls) | |
| launch_lomiri (self, mode="full-greeter", *args) | |
| patch_lightdm_mock (self) | |
| wait_for_lomiri (self) | |
| get_dash (self) | |
| main_window (self) | |
Protected Member Functions | |
| _create_interactive_notification (self, summary="", body="", icon=None, urgency="NORMAL", actions=[], hints=[]) | |
| _get_notify_script (self) | |
| _tidy_up_script_process (self) | |
| Protected Member Functions inherited from lomiri.shell.tests.test_notifications.NotificationsBase | |
| _get_icon_path (self, icon_name) | |
| _get_notifications_list (self) | |
| _assert_notification (self, notification, summary=None, body=None, icon=True, secondary_icon=False, opacity=None) | |
| Protected Member Functions inherited from lomiri.shell.tests.LomiriTestCase | |
| _setup_display_details (self) | |
| _determine_geometry (self) | |
| _setup_grid_size (self, scale_divisor) | |
| _geo_larger_than_display (self, width, height) | |
| _get_scaled_down_geo (self, width, height) | |
| _launch_lomiri_with_upstart (self, binary_path, args) | |
| _patch_data_dirs (self) | |
| _get_lightdm_mock_path (self) | |
| _set_proxy (self, proxy) | |
| _clear_proxy (self) | |
Protected Attributes | |
| _notify_proc = None | |
| _tidy_up_script_process | |
| Protected Attributes inherited from lomiri.shell.tests.LomiriTestCase | |
| _proxy = None | |
| bool | _qml_mock_enabled = True |
| bool | _data_dirs_mock_enabled = True |
| dict | _environment = {} |
| _clear_proxy | |
Additional Inherited Members | |
| Public Attributes inherited from lomiri.shell.tests.LomiriTestCase | |
| list | lomiri_geometry_args = [] |
| int | grid_size = 8 |
| Static Public Attributes inherited from lomiri.shell.tests.test_notifications.NotificationsBase | |
| scenarios | |
Collection of test for Interactive tests including snap decisions.
Definition at line 112 of file test_notifications.py.
|
protected |
Create a interactive notification command.
:param summary: Summary text for the notification
:param body: Body text to display in the notification
:param icon: Path string to the icon to use
:param urgency: Urgency string for the noticiation, either: 'LOW',
'NORMAL', 'CRITICAL'
:param actions: List of tuples containing the 'id' and 'label' for all
the actions to add
:param hint_strings: List of tuples containing the 'name' and value for
setting the hint strings for the notification
Definition at line 293 of file test_notifications.py.
|
protected |
Returns the path to the interactive notification creation script.
Definition at line 361 of file test_notifications.py.
|
protected |
Definition at line 372 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.assert_notification_action_id_was_called | ( | self, | |
| action_id, | |||
| timeout = 10 ) |
Assert that the interactive notification callback of id *action_id*
was called.
:raises AssertionError: If no interactive notification has actually
been created.
:raises AssertionError: When *action_id* does not match the actual
returned.
:raises AssertionError: If no callback was called at all.
Definition at line 377 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.setUp | ( | self | ) |
Reimplemented from lomiri.shell.tests.LomiriTestCase.
Definition at line 115 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.test_interactive | ( | self | ) |
Interactive notification must react upon click on itself.
Definition at line 120 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.test_modal_sd_with_greeter | ( | self | ) |
A snap-decision should block input to the greeter/lockscreen beneath it.
Definition at line 245 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.test_modal_sd_without_greeter | ( | self | ) |
Snap-decision should block input to shell without greeter/lockscreen.
Definition at line 196 of file test_notifications.py.
| lomiri.shell.tests.test_notifications.InteractiveNotificationBase.test_sd_one_over_two_layout | ( | self | ) |
Snap-decision with three actions should use one-over two button layout.
Definition at line 155 of file test_notifications.py.
|
protected |
Definition at line 118 of file test_notifications.py.
|
protected |
Definition at line 354 of file test_notifications.py.