Skip to content

Commit

Permalink
Another try
Browse files Browse the repository at this point in the history
  • Loading branch information
simonharrer committed Feb 10, 2016
1 parent 513f0b4 commit 8a7974a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
7 changes: 6 additions & 1 deletion src/integrationTest/java/net/sf/jabref/gui/GUITest.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ protected void onSetUp() {
awtExceptionHandler.installExceptionDetectionInEDT();
application(JabRefMain.class).start();

robot().waitForIdle();

robot().settings().timeoutToFindSubMenu(1_000);
robot().settings().delayBetweenEvents(50);
}


Expand Down Expand Up @@ -75,8 +78,10 @@ public void testCreateBibtexEntry() {
@Test
public void testOpenAndSavePreferences() {
FrameFixture mainFrame = findFrame(JabRefFrame.class).withTimeout(10_000).using(robot());

mainFrame.menuItemWithPath("Options", "Preferences").click();

testPanelFixture.robot.waitForIdle();

findDialog(PreferencesDialog.class).withTimeout(10_000).using(robot()).button(new GenericTypeMatcher<JButton>(JButton.class) {

@Override protected boolean isMatching(@Nonnull JButton jButton) {
Expand Down
10 changes: 3 additions & 7 deletions src/main/java/net/sf/jabref/gui/JabRefFrame.java
Original file line number Diff line number Diff line change
Expand Up @@ -1469,13 +1469,9 @@ private void createToolBar() {
}

public void output(final String s) {
SwingUtilities.invokeLater(new Runnable() {

@Override
public void run() {
statusLine.setText(s);
statusLine.repaint();
}
SwingUtilities.invokeLater(() -> {
statusLine.setText(s);
statusLine.repaint();
});
}

Expand Down

0 comments on commit 8a7974a

Please sign in to comment.