+ async def _do_screenshots_editor(self):
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['play', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['domino', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['close_instructions', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['wrench', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_collapsed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_expanded')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_save', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_save')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_scene_filename', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_filename_changed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_scene_filename', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_filename_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_scene_name', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_name_changed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_scene_name', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_name_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_scene_instructions', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return', 'BackSpace', 'BackSpace', 'BackSpace', 'BackSpace'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_text', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_changed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_text', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'BackSpace'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_sorting', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_collapsed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_sorting', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_expanded')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_save', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_save')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_sorting_close', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_sorting_closed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_class', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_start_class')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['start_class_box', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_start_class_box')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_strategy', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_start_strategy')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['start_strategy_upstrategy', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_start_strategy_up')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_count', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['0', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_count_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_count', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_count_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_scale', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_scale_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_scale', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_scale_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_mass', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_mass_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_mass', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_mass_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_restitution', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_restitution_modifed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_restitution', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_restitution_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_friction', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_friction_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_friction', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_friction_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_id_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_id_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_strategy_args', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_strategy_args_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_strategy_args', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_strategy_args_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_save', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_save')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_next', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_next')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_new', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_new')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_delete', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_delete')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_start_close', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_start_close')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_new', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['collapse_button_scene', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['test_piece', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_strategy', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_inspector_strategy')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['inspector_strategy_upstrategy', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_inspector_strategy_up')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_position', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_position_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_position', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_position_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_roll', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_roll_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_roll', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_roll_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_scale', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_scale_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_scale', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_scale_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_mass', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_mass_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_mass', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_mass_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_restitution', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_restitution_modifed')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_restitution', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_restitution_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_friction', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_friction_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_friction', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_friction_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_id_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_id_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_strategy_args', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_strategy_args_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_strategy_args', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_strategy_args_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_delete', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_delete')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_close', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_close')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['drag_stop_0', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_position', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['1', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_position_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_position', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_position_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['a', 'b', 'c', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_id_modified')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_id', 'left'])
+ await self._event(FunctionalTest.evt_time, 'keyboard', ['BackSpace', 'BackSpace', 'BackSpace', 'Return'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_id_restored')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_delete', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_delete')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_inspector_test_close', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_inspector_test_close')
+ await self._screenshot(FunctionalTest.start_time, 'editor_new')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['wrench', 'left'])
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_new_item', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_new_item')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['new_item_box', 'left'])
+ await self._screenshot(FunctionalTest.screenshot_time, 'editor_new_item')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['editor_close', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'editor_close')
+ await self._screenshot(FunctionalTest.start_time, 'editor_scene_new')
+ await self._event(FunctionalTest.evt_time, 'mouseclick', ['home', 'left'])
+ await self._screenshot(FunctionalTest.start_time, 'home_from_editor')
+
+ async def _do_screenshots_3(self):
+ info('_do_screenshots_3')
+ await self._screenshot(FunctionalTest.start_time, 'main_menu_3')
+ await self._do_screenshots_editor()
+ await self._do_screenshots_exit()
+