@@ -30,19 +30,22 @@ class IndicatorsTestCase(AutopilotTestCase):
31 """A common test case class that provides several useful methods for indicator tests."""
31 """A common test case class that provides several useful methods for indicator tests."""
33 if model() == 'Desktop':
36 if model() == 'Desktop':
34 scenarios = [
37 scenarios = [
35− ('with mouse', dict(input_device_class=Mouse, grid_unit="12")),
38+ ('with mouse', dict(input_device_class=Mouse, geometry="400x800", grid_unit="12")),
38 scenarios = [
41 scenarios = [
39− ('with touch', dict(input_device_class=Touch, grid_unit="0")),
42+ ('with touch', dict(input_device_class=Touch)),
42 def setUp(self, geometry, grid_size):
45 def setUp(self, geometry, grid_size):
43 self.pointing_device = Pointer(self.input_device_class.create())
46 self.pointing_device = Pointer(self.input_device_class.create())
44 super(IndicatorsTestCase, self).setUp()
47 super(IndicatorsTestCase, self).setUp()
45− if grid_size != "0":
48+ if grid_size is not None:
46 self.patch_environment("GRID_UNIT_PX", str(grid_size))
49 self.patch_environment("GRID_UNIT_PX", str(grid_size))
47 self.grid_size = int(grid_size)
50 self.grid_size = int(grid_size)
@@ -54,7 +57,7 @@ class IndicatorsTestCase(AutopilotTestCase):
54 self.launch_test_local(geometry)
57 self.launch_test_local(geometry)
56 def launch_test_local(self, geometry):
59 def launch_test_local(self, geometry):
57− if geometry != "0x0":
60+ if geometry is None:
58 self.app = self.launch_test_application(get_binary_path("indicators-client"),
61 self.app = self.launch_test_application(get_binary_path("indicators-client"),
59 "-geometry", geometry, app_type='qt')
62 "-geometry", geometry, app_type='qt')
@@ -62,7 +65,7 @@ class IndicatorsTestCase(AutopilotTestCase):
62 app_type='qt')
65 app_type='qt')
64 def launch_test_installed(self, geometry):
67 def launch_test_installed(self, geometry):
65− if geometry != "0x0":
68+ if geometry is not None:
66 self.app = self.launch_test_application("indicators-client", "-geometry", geometry, app_type='qt')
69 self.app = self.launch_test_application("indicators-client", "-geometry", geometry, app_type='qt')
68 self.app = self.launch_test_application("indicators-client", app_type='qt')
71 self.app = self.launch_test_application("indicators-client", app_type='qt')