on xenial help sign in
Making the statement look prettier.
d32ff7bLeonardo Arias Fonseca
tests/autopilot/unity8/shell/tests/test_emulators.py+2−1
@@ -139,7 +139,8 @@ class DashAppsEmulatorTestCase(tests.DashBaseTestCase):
139 x_center = list_view.globalRect.x + list_view.width / 2
139 x_center = list_view.globalRect.x + list_view.width / 2
140 y_center = list_view.globalRect.y + list_view.height / 2
140 y_center = list_view.globalRect.y + list_view.height / 2
141 y_diff = (
141 y_diff = (
142− category_element.y - list_view.height + category_element.height)
142+ category_element.y - list_view.height + category_element.height
143+ )
143 list_view._slow_drag(x_center, x_center, y_center, y_center - y_diff)
144 list_view._slow_drag(x_center, x_center, y_center, y_center - y_diff)
144 applications = self.applications_scope.get_applications(category)
145 applications = self.applications_scope.get_applications(category)
145 self.assertEqual(expected_applications, applications)
146 self.assertEqual(expected_applications, applications)