Example #1
0
def gui_test():
    # NOTE: this an all-in-one GUI test as a workaround for the
    # problem that the GUI does not cleanly terminate after the test fork()
    gui = guicontrol.GUI()
    gui.wait_for_idle()
    gui.app.filehandler.open_file(u'bigimage.ora')
    gui_doc = gui.app.doc
    for i in iterations():
        gui.app.filehandler.open_file(u'smallimage.ora')
        gui.wait_for_idle()
        paint_gui(gui)
        gui.app.filehandler.save_file(u'test_save.ora')
        gui.scroll()
        gui_doc.zoom(gui_doc.ZOOM_OUTWARDS)
        gui.scroll()
        gui_doc.zoom(gui_doc.ZOOM_INWARDS)
Example #2
0
 def f2():
     gui = guicontrol.GUI()
     for action in f(gui):
         yield action