~smspillaz/unity/unity.less-paint-insanity

« back to all changes in this revision

Viewing changes to tests/autopilot/unity/emulators/switcher.py

  • Committer: smspillaz
  • Date: 2012-06-12 04:30:24 UTC
  • mfrom: (2370.2.26 unity)
  • Revision ID: sam.spilsbury@canonical.com-20120612043024-wzscubj31gjetnmp
MergeĀ lp:unity

Show diffs side-by-side

added added

removed removed

Lines of Context:
91
91
        elif mode == SwitcherMode.DETAIL:
92
92
            logger.debug("Initiating switcher detail mode with Alt+`")
93
93
            self.keybinding_hold_part_then_tap("switcher/reveal_details")
94
 
            self.controller.model.detail_selection.wait_for(True)
 
94
            self.visible.wait_for(True)
95
95
        elif mode == SwitcherMode.ALL:
96
96
            logger.debug("Initiating switcher in 'all workspaces' mode. Ctrl+Alt+Tab")
97
97
            self.keybinding_hold_part_then_tap("switcher/reveal_all")
142
142
        self._mouse.press(7)
143
143
        self._mouse.release(7)
144
144
 
 
145
    @property
 
146
    def detail_selection_index(self):
 
147
        """The index of the currently selected detail"""
 
148
        return self.controller.model.detail_selection_index
 
149
 
 
150
    @property
 
151
    def detail_current_count(self):
 
152
        """The number of shown details"""
 
153
        return self.controller.model.detail_current_count
 
154
 
145
155
    def show_details(self):
146
156
        """Show detail mode."""
147
157
        logger.debug("Showing details view.")