private void testBatchFilter() { FileChoosers.setLastOpenDir(INPUT_DIR); FileChoosers.setLastSaveDir(BATCH_FILTER_OUTPUT_DIR); assertTrue(ImageComponents.getActiveComp().isPresent()); runMenuCommand("Batch Filter..."); DialogFixture dialog = findDialogByTitle("Batch Filter"); dialog.comboBox("filtersCB").selectItem("Angular Waves"); dialog.button("ok").click(); // next sleep(3, SECONDS); findButtonByText(dialog, "Randomize Settings").click(); dialog.button("ok").click(); // start processing waitForProgressMonitorEnd(); }
private void testExportTweeningAnimation() { assertTrue(ImageComponents.getActiveComp().isPresent()); runMenuCommand("Export Tweening Animation..."); DialogFixture dialog = findDialogByTitle("Export Tweening Animation"); dialog.comboBox().selectItem("Angular Waves"); dialog.button("ok").click(); // next findButtonByText(dialog, "Randomize Settings").click(); dialog.button("ok").click(); // next findButtonByText(dialog, "Randomize Settings").click(); dialog.button("ok").click(); // next dialog.button("ok").click(); // render // say OK to the folder not empty question JOptionPaneFixture optionPane = findJOptionPane(); optionPane.yesButton().click(); waitForProgressMonitorEnd(); }
private void addNewLayer() { int nrLayers = ImageComponents.getActiveComp().get().getNrLayers(); runMenuCommand("Duplicate Layer"); checkNumLayers(nrLayers + 1); keyboardInvert(); }
private static void checkNumLayers(int num) { int nrLayers = ImageComponents.getActiveComp().get().getNrLayers(); assertEquals(nrLayers, num); }