Work around Mir not delivering input to shell after restart, if the device isn't reinitialized.
Approved by Michael Zanetti.
commit321d1b8e262592d2e14b0c4ce9f8e9a73db3e2d6
authorMichał Sawicz <michal.sawicz@canonical.com>
dateFri 11 Oct 2013, 15:13 (13 years ago)
parent1aee86f6332082
tests/autopilot/unity8/shell/tests/__init__.py+6
@@ -87,6 +87,12 @@ class UnityTestCase(AutopilotTestCase):
8787 self._proxy = None
8888 self._lightdm_mock_type = None
8989 self._qml_mock_enabled = True
90+
91+ #### FIXME: This is a work around re: lp:1238417 ####
92+ from autopilot.input import _uinput
93+ _uinput._touch_device = _uinput.create_touch_device()
94+ ####
95+
9096 self.touch = Touch.create()
9197 self._setup_display_details()
9298