コード例 #1
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();
  }
コード例 #2
0
  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();
  }
コード例 #3
0
 private void addNewLayer() {
   int nrLayers = ImageComponents.getActiveComp().get().getNrLayers();
   runMenuCommand("Duplicate Layer");
   checkNumLayers(nrLayers + 1);
   keyboardInvert();
 }
コード例 #4
0
 private static void checkNumLayers(int num) {
   int nrLayers = ImageComponents.getActiveComp().get().getNrLayers();
   assertEquals(nrLayers, num);
 }