Thread.__init__(self)
address = ('localhost', 6000)
self._listener = Listener(address)
- self._conn = self._listener.accept()
+ self._listener._listener._socket.settimeout(15)
+ try:
+ self._conn = self._listener.accept()
+ except TimeoutError:
+ info('listener timeout')
self._callbacks = callbacks
def run(self):
- running = True
+ running = hasattr(self, '_conn')
while running:
try:
msg = self._conn.recv()
self._event(8 + FunctionalTest.evt_time, 'mouseclick', [(440, 120), 'left'])
self._screenshot(8 + FunctionalTest.screenshot_time, 'back_from_fullscreen')
# resolution
- # self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 340), 'left'])
- # self._screenshot(FunctionalTest.screenshot_time, 'resolutions')
- # self._event(FunctionalTest.evt_time, 'mouseclick', [(1020, 160), 'left'])
- # self._screenshot(FunctionalTest.screenshot_time, '1440x900')
- # self._event(FunctionalTest.evt_time, 'mouseclick', [(740, 400), 'left'])
- # self._screenshot(FunctionalTest.screenshot_time, 'resolutions_2')
- # self._event(FunctionalTest.evt_time, 'mouseclick', [(1110, 80), 'left'])
- # self._screenshot(FunctionalTest.screenshot_time, '1360x768')
+ self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 340), 'left'])
+ self._screenshot(FunctionalTest.screenshot_time, 'resolutions')
+ self._event(FunctionalTest.evt_time, 'mouseclick', [(1000, 400), 'left'])
+ self._screenshot(FunctionalTest.screenshot_time, '1440x900')
+ self._event(FunctionalTest.evt_time, 'mouseclick', [(740, 400), 'left'])
+ self._screenshot(FunctionalTest.screenshot_time, 'resolutions_2')
+ self._event(FunctionalTest.evt_time, 'mouseclick', [(1110, 80), 'left'])
+ self._screenshot(FunctionalTest.screenshot_time, '1360x768')
# antialiasing
self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 440), 'left'])
self._screenshot(FunctionalTest.screenshot_time, 'antialiasing_yes')
#+CATEGORY: pmachines
#+TAGS: bug(b) calendar(c) waiting(w)
-* RED restore test resolutions
-* READY merge rc, stable
-* READY fix actions: rewind, prev, next :bug:
+* RED fix actions: rewind, prev, next :bug:
* READY restore tests for level 6 and 7
* READY move functional tests in tests from lib.engine
* READY refactoring