on xenial help sign in
Implement veebers' corrections.
commit3548c1c3f73c5c4fe0a24ce848c13bb198111c96 authorAllan LeSage <allan.lesage@canonical.com> dateTue 22 Oct 2013, 12:17 (13 years ago) parent5935c36
2 files changed+10−10
tests/autopilot/unity8/indicators/tests/test_indicators.py+9−9 tests/autopilot/unity8/shell/emulators/main_window.py+1−1
tests/autopilot/unity8/indicators/tests/test_indicators.py+9−9
@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity - Indicatosr Autopilot Test Suite
3+# Unity - Indicators Autopilot Test Suite
44# Copyright (C) 2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -19,18 +19,19 @@
1919
2020from __future__ import absolute_import
2121
22+from unity8.shell.emulators.main_window import IndicatorType
2223from unity8.shell.tests import UnityTestCase
23−from unity8.shell.emulators.main_window import Indicators
24+
2425
2526class IndicatorTestCase(UnityTestCase):
2627
2728 scenarios = [
28− ('Network', dict(indicator_name=Indicators.network)),
29− ('Location', dict(indicator_name=Indicators.location)),
30− ('Messaging', dict(indicator_name=Indicators.messaging)),
31− ('Power', dict(indicator_name=Indicators.power)),
32− ('Sound', dict(indicator_name=Indicators.sound)),
33− ('Datetime', dict(indicator_name=Indicators.datetime)),
29+ ('Network', dict(indicator_name=IndicatorType.network)),
30+ ('Location', dict(indicator_name=IndicatorType.location)),
31+ ('Messaging', dict(indicator_name=IndicatorType.messaging)),
32+ ('Power', dict(indicator_name=IndicatorType.power)),
33+ ('Sound', dict(indicator_name=IndicatorType.sound)),
34+ ('Datetime', dict(indicator_name=IndicatorType.datetime)),
3435 ]
3536
3637 def test_indicator_exists(self):
@@ -38,6 +39,5 @@ class IndicatorTestCase(UnityTestCase):
3839
3940 self.launch_unity()
4041 self.main_window.get_greeter().swipe()
41− window = self.main_window.get_qml_view()
4242 indicator = self.main_window.get_indicator(self.indicator_name)
4343 self.assertIsNotNone(indicator)
tests/autopilot/unity8/shell/emulators/main_window.py+1−1
@@ -101,7 +101,7 @@ class MainWindow(object):
101101 )
102102
103103
104−class Indicators:
104+class IndicatorType:
105105 network = 'indicator-network'
106106 location = 'indicator-location'
107107 messaging = 'indicator-messages'