Ejemplo n.º 1
0
  private void testClone(boolean aligned, boolean sampleAllLayers, int startX) {
    if (aligned) {
      window.checkBox("alignedCB").check();
    } else {
      window.checkBox("alignedCB").uncheck();
    }

    if (sampleAllLayers) {
      window.checkBox("sampleAllLayersCB").check();
    } else {
      window.checkBox("sampleAllLayersCB").uncheck();
    }

    move(300, 300);

    altClick();

    move(startX, 300);
    for (int i = 1; i <= 5; i++) {
      int x = startX + i * 10;
      drag(x, 300);
      drag(x, 400);
    }
    keyboardUndoRedo();
  }
Ejemplo n.º 2
0
  private void testGradientTool() {
    window.toggleButton("Gradient Tool Button").click();
    randomAltClick();

    for (GradientType gradientType : GradientType.values()) {
      window.comboBox("gradientTypeSelector").selectItem(gradientType.toString());
      for (String cycleMethod : GradientTool.CYCLE_METHODS) {
        window.comboBox("gradientCycleMethodSelector").selectItem(cycleMethod);
        GradientColorType[] gradientColorTypes = GradientColorType.values();
        for (GradientColorType colorType : gradientColorTypes) {
          window.comboBox("gradientColorTypeSelector").selectItem(colorType.toString());
          window.checkBox("gradientInvert").uncheck();
          move(200, 200);
          drag(400, 400);
          window.checkBox("gradientInvert").check();
          move(200, 200);
          drag(400, 400);
        }
      }
    }
    keyboardUndoRedo();
  }