on xenial help sign in
Don't remember why this is here, remove
ded80f4Albert Astals
tests/autopilot/unity8/shell/emulators/dash.py−9
@@ -18,7 +18,6 @@
18#
18#
19
19
20import logging
20import logging
21−import time
22import ubuntuuitoolkit
21import ubuntuuitoolkit
23
22
24from unity8.shell import emulators
23from unity8.shell import emulators
@@ -80,9 +79,7 @@ class Dash(emulators.UnityEmulatorBase):
80
79
81 """
80 """
82 scope_loader = self._get_scope_loader(scope_id)
81 scope_loader = self._get_scope_loader(scope_id)
83− print ("open_scope", scope_id, scope_loader)
84 if scope_loader.isCurrent:
82 if scope_loader.isCurrent:
85− print ("scope_loader.isCurrent")
86 logger.info('The scope is already open.')
83 logger.info('The scope is already open.')
87 return self._get_scope_from_loader(scope_loader)
84 return self._get_scope_from_loader(scope_loader)
88 else:
85 else:
@@ -97,12 +94,6 @@ class Dash(emulators.UnityEmulatorBase):
97 'No scope found with id {0}'.format(scope_id))
94 'No scope found with id {0}'.format(scope_id))
98
95
99 def _get_scope_from_loader(self, loader):
96 def _get_scope_from_loader(self, loader):
100− print ("_get_scope_from_loader", loader, loader.isCurrent, loader.isLoaded, loader.get_children())
101− i = 0
102− time.sleep(1)
103− while len(loader.get_children()) < 1 and i < 5:
104− time.sleep(1)
105− i = i + 1
106 return loader.get_children()[0]
97 return loader.get_children()[0]
107
98
108 def _open_scope_scrolling(self, scope_loader):
99 def _open_scope_scrolling(self, scope_loader):