~unity-team/unity/trunk

« back to all changes in this revision

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

Add an autopilot test to verify that multiple Hud reveals don't leave the launcher in a bad state.. Fixes: . Approved by Tim Penhey.

Show diffs side-by-side

added added

removed removed

Lines of Context:
175
175
                icons.append(icon)
176
176
        return icons
177
177
 
 
178
    def get_icon_by_tooltip_text(self, tooltip_text):
 
179
        """Get a launcher icon given it's tooltip text.
 
180
 
 
181
        Returns None if there is no icon with the specified text.
 
182
        """
 
183
        for icon in self.get_launcher_icons():
 
184
            if icon.tooltip_text == tooltip_text:
 
185
                return icon
 
186
        return None
 
187
 
178
188
    def num_launcher_icons(self):
179
189
        """Get the number of icons in the launcher model."""
180
190
        return len(self.get_launcher_icons())