on xenial help sign in
Adjust input import.
8a74246Allan LeSage
tests/autopilot/unity8/shell/emulators/main_window.py+2−2
@@ -20,7 +20,7 @@
20import logging
20import logging
21
21
22from autopilot import logging as autopilot_logging
22from autopilot import logging as autopilot_logging
23−from autopilot.input._common import get_center_point
23+from autopilot import input
24
24
25from unity8.shell import emulators
25from unity8.shell import emulators
26from unity8.shell.emulators.greeter import Greeter
26from unity8.shell.emulators.greeter import Greeter
@@ -107,7 +107,7 @@ class QQuickView(emulators.UnityEmulatorBase):
107 :returns: The indicator page.
107 :returns: The indicator page.
108 """
108 """
109 widget = self._get_indicator_widget(indicator_name)
109 widget = self._get_indicator_widget(indicator_name)
110− start_x, start_y = get_center_point(widget)
110+ start_x, start_y = input.get_center_point(widget)
111 end_x = start_x
111 end_x = start_x
112 end_y = self.height
112 end_y = self.height
113 self.pointing_device.drag(start_x, start_y, end_x, end_y)
113 self.pointing_device.drag(start_x, start_y, end_x, end_y)