- def _do_screenshots_play(self):
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'play_menu')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 680), 'left']) # back
- self._event(FunctionalTest.evt_time, 'mouseclick', ['back', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'back_from_play')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino scene
- self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'scene_domino_instructions')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
- self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'scene_domino')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(25, 740), 'left']) # home
- self._event(FunctionalTest.evt_time, 'mouseclick', ['home', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'home_back_from_scene')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino
- self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
- self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(70, 740), 'left']) # info
- self._event(FunctionalTest.evt_time, 'mouseclick', ['information', 'left'])
- self._screenshot(FunctionalTest.screenshot_time, 'info')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
- self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- # self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (430, 280), 'left']) # drag a piece
- # self._screenshot(FunctionalTest.screenshot_time, 'domino_dragged')
- # self._event(FunctionalTest.evt_time, 'mouseclick', [(1220, 740), 'left']) # rewind
- # self._screenshot(FunctionalTest.screenshot_time, 'rewind')
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
- # self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
- self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(630, 450), 'left']) # home
- self._event(FunctionalTest.evt_time, 'mouseclick', ['home_win', 'left']) # home
- self._screenshot(FunctionalTest.screenshot_time, 'home_back_from_fail')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left']) # play
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino
- self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
- self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a piece .49 .06
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
- self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino_2')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
- self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left']) # play
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (570, 380), 'left']) # drag a piece -1.54 .06
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_2', 'left']) # drag a piece -1.54 .06
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(570, 355), (605, 355), 'right']) # rotate the piece -1.05 .4
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_3', 'right']) # rotate the piece -1.54 .4 -1.05 .4
- #self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
- self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
- self._enforce_res(FunctionalTest.evt_time, 'win')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
- self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
- self._screenshot(16 + FunctionalTest.screenshot_time, 'win_domino')
- self._enforce_res(FunctionalTest.evt_time, '')
- #self._event(FunctionalTest.evt_time, 'mouseclick', [(735, 450), 'left']) # next
- self._event(FunctionalTest.evt_time, 'mouseclick', ['next', 'left']) # play
- self._screenshot(FunctionalTest.screenshot_time, 'scene_box')
+ async def _do_screenshots_play(self):
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'play_menu')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 680), 'left']) # back
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['back', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'back_from_play')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino scene
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'scene_domino_instructions')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'scene_domino')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(25, 740), 'left']) # home
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['home', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'home_back_from_scene')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(70, 740), 'left']) # info
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['information', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'info')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
+ # await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (430, 280), 'left']) # drag a piece
+ # await self._screenshot(FunctionalTest.screenshot_time, 'domino_dragged')
+ # await self._event(FunctionalTest.evt_time, 'mouseclick', [(1220, 740), 'left']) # rewind
+ # await self._screenshot(FunctionalTest.screenshot_time, 'rewind')
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
+ # await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
+ await self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(630, 450), 'left']) # home
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['home_win', 'left']) # home
+ await self._screenshot(FunctionalTest.screenshot_time, 'home_back_from_fail')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 140), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left']) # play
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(230, 160), 'left']) # domino
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(850, 490), 'left']) # close instructions
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (550, 380), 'left']) # drag a piece
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_1', 'left']) # drag a piece .49 .06
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
+ await self._screenshot(16 + FunctionalTest.screenshot_time, 'fail_domino_2')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(680, 450), 'left']) # replay
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['replay', 'left']) # play
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (570, 380), 'left']) # drag a piece -1.54 .06
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_2', 'left']) # drag a piece -1.54 .06
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(570, 355), (605, 355), 'right']) # rotate the piece -1.05 .4
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_1', 'drag_stop_3', 'right']) # rotate the piece -1.54 .4 -1.05 .4
+ #await self._event(FunctionalTest.drag_time, 'mousedrag', [(35, 60), (715, 380), 'left']) # drag a piece
+ await self._event(FunctionalTest.drag_time, 'mousedrag', ['drag_start_0', 'drag_stop_0', 'left']) # drag a piece
+ await self._enforce_res(FunctionalTest.evt_time, 'win')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(1340, 740), 'left']) # play
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['right', 'left']) # play
+ await self._screenshot(16 + FunctionalTest.screenshot_time, 'win_domino')
+ await self._enforce_res(FunctionalTest.evt_time, '')
+ #await self._event(FunctionalTest.evt_time, 'mouseclick', [(735, 450), 'left']) # next
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['next', 'left']) # play
+ await self._screenshot(FunctionalTest.screenshot_time, 'scene_box')