@@ -1,7 +1,7 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity Autopilot Test Suite
4−# Copyright (C) 2012-2013 Canonical
3+# Unity Indicators Autopilot Test Suite
4+# Copyright (C) 2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
77# it under the terms of the GNU General Public License as published by
@@ -29,12 +29,12 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
2929 super(DefaultIndicatorWidget, self).__init__(*args, **kwargs)
3030 self.pointer = Pointer(Touch.create())
3131
32− # TODO: submit to autopilot.introspection.types.Rectangle
32+ # TODO: submit to autopilot.introspection.types.Rectangle [alesage 2013-12-06]
3333 def get_center(self):
3434 """Returns (x, y) representing the center of a globalRect."""
3535 return (
36− self.globalRect[0]+int(self.globalRect[2]/2),
37− self.globalRect[1]+int(self.globalRect[3]/2)
36+ self.globalRect.x+int(self.globalRect.width/2),
37+ self.globalRect.y+int(self.globalRect.height/2)
3838 )
3939
4040 def swipe_to_open_indicator(self, window):
@@ -46,7 +46,7 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
4646 start_x, start_y,
4747 end_x, end_y
4848 )
49− # TODO: assert that the indicator page opened
49+ # TODO: assert that the indicator page opened [alesage 2013-12-06]
5050
5151 def swipe_to_close_indicator(self, window):
5252 """Swipe to close the indicator, wait until it's closed."""
@@ -57,4 +57,4 @@ class DefaultIndicatorWidget(UnityEmulatorBase):
5757 start_x, start_y,
5858 end_x, end_y
5959 )
60− # TODO: assert that the indicator page closed
60+ # TODO: assert that the indicator page closed [alesage 2013-12-06]