~cimi/unity8/card_touchdown

« back to all changes in this revision

Viewing changes to tests/autopilot/unity8/shell/tests/disabled_test_hud.py

  • Committer: Andrea Cimitan
  • Date: 2014-06-20 15:02:12 UTC
  • mfrom: (917.1.36 obeyArtShapeFixedSize)
  • Revision ID: andrea.cimitan@gmail.com-20140620150212-an6nkcv515i22usy
Merged albert branch with fixes for icon size

Show diffs side-by-side

added added

removed removed

Lines of Context:
19
19
 
20
20
from __future__ import absolute_import
21
21
 
22
 
from unity8.process_helpers import unlock_unity
23
 
from unity8.shell import with_lightdm_mock, DragMixin
 
22
from unity8.shell import DragMixin
24
23
from unity8.shell.tests import UnityTestCase, _get_device_emulation_scenarios
25
24
 
26
25
from testtools.matchers import Equals
40
39
 
41
40
        """
42
41
        unity_proxy = self.launch_unity()
43
 
        unlock_unity(unity_proxy)
44
42
        hud_show_button = self.main_window.get_hud_show_button()
45
43
        edge_drag_area = self.main_window.get_hud_edge_drag_area()
46
44
        hud = self.main_window.get_hud()
81
79
 
82
80
        """
83
81
        unity_proxy = self.launch_unity()
84
 
        unlock_unity(unity_proxy)
85
82
        hud_show_button = self.main_window.get_hud_show_button()
86
83
        hud = self.main_window.get_hud()
87
84
 
117
114
    def test_hide_hud_click(self):
118
115
        """Tapping the close button of the Hud must dismiss it."""
119
116
        unity_proxy = self.launch_unity()
120
 
        unlock_unity(unity_proxy)
121
117
        hud = self.main_window.get_hud()
122
118
 
123
119
        self._launch_test_app_from_app_screen()
134
130
 
135
131
        """
136
132
        unity_proxy = self.launch_unity()
137
 
        unlock_unity(unity_proxy)
138
133
        hud = self.main_window.get_hud()
139
134
 
140
135
        self._launch_test_app_from_app_screen()
151
146
    def test_launcher_hides_hud(self):
152
147
        """Opening the Launcher while the Hud is active must close the Hud."""
153
148
        unity_proxy = self.launch_unity()
154
 
        unlock_unity(unity_proxy)
155
149
        hud = self.main_window.get_hud()
156
150
        launcher = self.main_window.get_launcher()
157
151