Beispiel #1
0
  private void testBatchResize() {
    FileChoosers.setLastOpenDir(INPUT_DIR);
    FileChoosers.setLastSaveDir(BATCH_RESIZE_OUTPUT_DIR);
    runMenuCommand("Batch Resize...");
    DialogFixture dialog = findDialogByTitle("Batch Resize");

    dialog.textBox("widthTF").setText("200");
    dialog.textBox("heightTF").setText("200");
    dialog.button("ok").click();
  }
Beispiel #2
0
  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();
  }
Beispiel #3
0
 private void testExportLayerToPNG() {
   FileChoosers.setLastSaveDir(BASE_TESTING_DIR);
   addNewLayer();
   runMenuCommand("Export Layers to PNG...");
   findDialogByTitle("Select Output Folder").button("ok").click();
   sleep(2, SECONDS);
 }