ubuntu-sdk-bugs team mailing list archive
-
ubuntu-sdk-bugs team
-
Mailing list archive
-
Message #00106
[Bug 1211619] Re: Autopilot emulator can loop infinitely while searching for tab
** Changed in: ubuntu-ui-toolkit
Status: Fix Committed => Fix Released
--
You received this bug notification because you are a member of Ubuntu
SDK bug tracking, which is subscribed to ubuntu-ui-toolkit in Ubuntu.
https://bugs.launchpad.net/bugs/1211619
Title:
Autopilot emulator can loop infinitely while searching for tab
Status in Ubuntu UI Toolkit:
Fix Released
Status in “ubuntu-ui-toolkit” package in Ubuntu:
Fix Released
Bug description:
The autopilot emulator need sto make sure we don't have open ended
loops in tab switching.
def switch_to_tab_by_index(self, index):
"""Open a tab.
:parameter index: The index of the tab to open.
:return: The newly opened tab.
"""
tabs = self.get_tabs()
if index >= tabs.get_number_of_tabs():
raise IndexError('Tab index out of range.')
current_tab = tabs.get_current_tab()
while not tabs.selectedTabIndex == index:
current_tab = self.switch_to_next_tab()
return current_tab
Let's add a controlled exit once we've checked every tab and fail to
exit the loop. I've NO idea why or how we could not find the tabIndex,
but it's happening in the weather app smoke tests at present, and in
general this has potential to loop.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-ui-toolkit/+bug/1211619/+subscriptions