on xenial help sign in
Reconcile with ancient MP, removing extraneous pointer.
commit8be00cd006e772b7183daa1957563cbd9b6e239c authorAllan LeSage <allan.lesage@canonical.com> dateWed 26 Mar 2014, 17:54 (13 years ago) parent6f9a233288b094
1 file changed+2−5
tests/autopilot/unity8/indicators/emulators/widget.py+2−5
tests/autopilot/unity8/indicators/emulators/widget.py+2−5
@@ -16,8 +16,6 @@
1616# You should have received a copy of the GNU General Public License
1717# along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
19−from autopilot.input import Pointer, Touch
20−
2119from unity8.shell.emulators import UnityEmulatorBase
2220
2321
@@ -27,7 +25,6 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
2725
2826 def __init__(self, *args, **kwargs):
2927 super(DefaultIndicatorWidget, self).__init__(*args, **kwargs)
30− self.pointer = Pointer(Touch.create())
3128
3229 # TODO: submit to autopilot.introspection.types.Rectangle [alesage 2013-12-06]
3330 def get_center(self):
@@ -42,7 +39,7 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
4239 start_x, start_y = self.get_center()
4340 end_x = start_x
4441 end_y = window.height
45− self.pointer.drag(
42+ self.pointing_device.drag(
4643 start_x, start_y,
4744 end_x, end_y
4845 )
@@ -53,7 +50,7 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
5350 end_x, end_y = self.get_center()
5451 start_x = end_x
5552 start_y = window.height
56− self.pointer.drag(
53+ self.pointing_device.drag(
5754 start_x, start_y,
5855 end_x, end_y
5956 )