selectVisualThemePrefPane() # Large size selectEditorPrefPane() # Start with small size next time type(Key.ESC) def _prefTitleRegion(): return find(p("PreferencesTitle.png")).below(40).right(1).left(350) def _selectPrefPane(title): t = _prefTitleRegion() i = t.left(1).right(50) i.click() util.select_all() util.delete_text() type(title[0]) type(title[1]) # Not needed wait(0.5) type(Key.DOWN) wait(0.5) type(Key.DOWN) wait(0.5) t.wait(p(title)) util.kill_editor() # Kill any currently running editor util.init_dart_editor() # Clear the workspace and start the editor testPrefPaneNav() # Test testPrefPaneSelection() # Test util.quit_app() # Exit editor
def init_dart_editor(): "Delete the workspace, start the editor, and open the big file." util.init_dart_editor() util.disable_code_folding() open_big_project() open_big_file()
def _prefTitleRegion(): return find(p("PreferencesTitle.png")).below(40).right(1).left(350) def _selectPrefPane(title): t = _prefTitleRegion() i = t.left(1).left(150) i.click() t.left(1).left(50).click() t.left(1).right(20).click() wait(1) util.select_all() wait(1) util.delete_text() wait(1) type(title[0]) wait(1) type(title[1]) # Not needed wait(1) type(Key.DOWN) wait(1) type(Key.DOWN) wait(1) t.nearby(100).wait(p(title)) util.kill_editor() # Kill any currently running editor util.init_dart_editor() # Clear the workspace and start the editor #util.start_dart_editor() testPrefPaneNav() # Test testPrefPaneSelection() # Test util.quit_app() # Exit editor