on xenial help sign in
Implement veebers' corrections.
3548c1cAllan LeSage
tests/autopilot/unity8/indicators/tests/test_indicators.py+9−9
@@ -1,6 +1,6 @@
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
1# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
2#
2#
3−# Unity - Indicatosr Autopilot Test Suite
3+# Unity - Indicators Autopilot Test Suite
4# Copyright (C) 2013 Canonical
4# Copyright (C) 2013 Canonical
5#
5#
6# This program is free software: you can redistribute it and/or modify
6# This program is free software: you can redistribute it and/or modify
@@ -19,18 +19,19 @@
19
19
20from __future__ import absolute_import
20from __future__ import absolute_import
21
21
22+from unity8.shell.emulators.main_window import IndicatorType
22from unity8.shell.tests import UnityTestCase
23from unity8.shell.tests import UnityTestCase
23−from unity8.shell.emulators.main_window import Indicators
24+
24
25
25class IndicatorTestCase(UnityTestCase):
26class IndicatorTestCase(UnityTestCase):
26
27
27 scenarios = [
28 scenarios = [
28− ('Network', dict(indicator_name=Indicators.network)),
29+ ('Network', dict(indicator_name=IndicatorType.network)),
29− ('Location', dict(indicator_name=Indicators.location)),
30+ ('Location', dict(indicator_name=IndicatorType.location)),
30− ('Messaging', dict(indicator_name=Indicators.messaging)),
31+ ('Messaging', dict(indicator_name=IndicatorType.messaging)),
31− ('Power', dict(indicator_name=Indicators.power)),
32+ ('Power', dict(indicator_name=IndicatorType.power)),
32− ('Sound', dict(indicator_name=Indicators.sound)),
33+ ('Sound', dict(indicator_name=IndicatorType.sound)),
33− ('Datetime', dict(indicator_name=Indicators.datetime)),
34+ ('Datetime', dict(indicator_name=IndicatorType.datetime)),
34 ]
35 ]
35
36
36 def test_indicator_exists(self):
37 def test_indicator_exists(self):
@@ -38,6 +39,5 @@ class IndicatorTestCase(UnityTestCase):
38
39
39 self.launch_unity()
40 self.launch_unity()
40 self.main_window.get_greeter().swipe()
41 self.main_window.get_greeter().swipe()
41− window = self.main_window.get_qml_view()
42 indicator = self.main_window.get_indicator(self.indicator_name)
42 indicator = self.main_window.get_indicator(self.indicator_name)
43 self.assertIsNotNone(indicator)
43 self.assertIsNotNone(indicator)
tests/autopilot/unity8/shell/emulators/main_window.py+1−1
@@ -101,7 +101,7 @@ class MainWindow(object):
101 )
101 )
102
102
103
103
104−class Indicators:
104+class IndicatorType:
105 network = 'indicator-network'
105 network = 'indicator-network'
106 location = 'indicator-location'
106 location = 'indicator-location'
107 messaging = 'indicator-messages'
107 messaging = 'indicator-messages'