Exemplo n.º 1
0
  private void testAbout() {
    findMenuItemByText("About").click();
    DialogFixture aboutDialog = findDialogByTitle("About Pixelitor");

    JTabbedPaneFixture tabbedPane = aboutDialog.tabbedPane();
    tabbedPane.requireTabTitles("About", "Credits", "System Info");
    tabbedPane.selectTab("Credits");
    tabbedPane.selectTab("System Info");
    tabbedPane.selectTab("About");

    aboutDialog.button("ok").click();
  }
Exemplo n.º 2
0
  private void setupEffectsDialog() {
    findButtonByText(window, "Effects...").click();

    DialogFixture dialog = findDialogByTitle("Effects");
    JTabbedPaneFixture tabbedPane = dialog.tabbedPane();
    tabbedPane.requireTabTitles(
        EffectsPanel.GLOW_TAB_NAME,
        EffectsPanel.INNER_GLOW_TAB_NAME,
        EffectsPanel.NEON_BORDER_TAB_NAME,
        EffectsPanel.DROP_SHADOW_TAB_NAME);
    tabbedPane.selectTab(EffectsPanel.INNER_GLOW_TAB_NAME);
    tabbedPane.selectTab(EffectsPanel.NEON_BORDER_TAB_NAME);
    tabbedPane.selectTab(EffectsPanel.DROP_SHADOW_TAB_NAME);
    tabbedPane.selectTab(EffectsPanel.GLOW_TAB_NAME);

    dialog.checkBox("enabledCB").check();

    dialog.button("ok").click();
  }