on xenial help sign in
Adjust input import.
commit8a742461ed12226d8dfd7efd1a8316d9adb872f9 authorAllan LeSage <allan.lesage@canonical.com> dateTue 1 Apr 2014, 11:59 (13 years ago) parentb2a5e15
1 file changed+2−2
tests/autopilot/unity8/shell/emulators/main_window.py+2−2
tests/autopilot/unity8/shell/emulators/main_window.py+2−2
@@ -20,7 +20,7 @@
2020import logging
2121
2222from autopilot import logging as autopilot_logging
23−from autopilot.input._common import get_center_point
23+from autopilot import input
2424
2525from unity8.shell import emulators
2626from unity8.shell.emulators.greeter import Greeter
@@ -107,7 +107,7 @@ class QQuickView(emulators.UnityEmulatorBase):
107107 :returns: The indicator page.
108108 """
109109 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)
111111 end_x = start_x
112112 end_y = self.height
113113 self.pointing_device.drag(start_x, start_y, end_x, end_y)