~townsend/unity/fix-dash-page-up-down

« back to all changes in this revision

Viewing changes to tests/autopilot/unity/tests/launcher/test_icon_behavior.py

  • Committer: Daniel van Vugt
  • Date: 2012-09-13 10:56:42 UTC
  • mfrom: (2684 unity)
  • mto: This revision was merged to the branch mainline in revision 2698.
  • Revision ID: daniel.van.vugt@canonical.com-20120913105642-9on2ald55h54j1zn
Merge latest lp:unity and fix conflicts

Show diffs side-by-side

added added

removed removed

Lines of Context:
150
150
        self.assertThat(calc_icon, NotEquals(None))
151
151
        self.assertThat(calc_icon.visible, Eventually(Equals(True)))
152
152
 
 
153
    def test_right_click_on_icon_ends_expo(self):
 
154
        """Right click on a launcher icon in expo mode must end the expo
 
155
        and show the quicklist.
 
156
 
 
157
        """
 
158
        self.keybinding("expo/start")
 
159
        self.addCleanup(self.keybinding, "expo/cancel")
 
160
 
 
161
        bfb = self.launcher.model.get_bfb_icon()
 
162
        self.mouse.move(bfb.center_x, bfb.center_y)
 
163
        self.mouse.click(button=3)
 
164
 
 
165
        self.assertThat(self.launcher_instance.quicklist_open, Eventually(Equals(True)))
 
166
 
 
167
        monitor = self.screen_geo.get_primary_monitor()
 
168
        self.panel = self.panels.get_panel_for_monitor(monitor)
 
169
        
 
170
        # When workspace switcher is opened the panel title is "Ubuntu Desktop" so we check
 
171
        # to make sure that workspace switcher end.
 
172
        self.assertThat(self.panels.get_active_panel().title, Eventually(NotEquals("Ubuntu Desktop")))
 
173
 
153
174
 
154
175
class LauncherDragIconsBehavior(LauncherTestCase):
155
176
    """Tests dragging icons around the Launcher."""