Program: 135276
Project: 135276
Buggy source:
@Test public void keyboardShortcutsTest(){
}

Fixed version (ground truth):
@Test public void keyboardShortcutsTest(){
  UI.events.registerEvent((IssueSelectedEventHandler)e -> selectedIssueId=e.id);
  UI.events.registerEvent((UIComponentFocusEventHandler)e -> uiComponentFocusEventType=e.eventType);
  UI.events.registerEvent((PanelClickedEventHandler)e -> panelIndex=e.panelIndex);
  clearSelectedIssueId();
  clearUiComponentFocusEventType();
  clearPanelIndex();
  assertEquals(false,stage.getMinWidth() > 500);
  press(KeyCode.CONTROL).press(KeyCode.X).release(KeyCode.X).release(KeyCode.CONTROL);
  assertEquals(true,stage.getMinWidth() > 500);
  press(KeyCode.CONTROL).press(KeyCode.D).release(KeyCode.D).release(KeyCode.CONTROL);
  assertEquals(false,stage.getMinWidth() > 500);
  press(KeyCode.CONTROL).press(KeyCode.DOWN).release(KeyCode.DOWN).release(KeyCode.CONTROL);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  press(KeyCode.CONTROL).press(KeyCode.UP).release(KeyCode.UP).release(KeyCode.CONTROL);
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  push(DOUBLE_PRESS.getCode()).push(DOUBLE_PRESS.getCode());
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(DOUBLE_PRESS.getCode()).push(DOUBLE_PRESS.getCode());
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT1).release(KeyCode.DIGIT1).release(KeyCode.CONTROL);
  PlatformEx.waitOnFxThread();
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(DOUBLE_PRESS.getCode()).push(DOUBLE_PRESS.getCode());
  assertEquals(UIComponentFocusEvent.EventType.FILTER_BOX,uiComponentFocusEventType);
  clearUiComponentFocusEventType();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT2).release(KeyCode.CONTROL).release(KeyCode.DIGIT2);
  PlatformEx.waitOnFxThread();
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT3).release(KeyCode.CONTROL).release(KeyCode.DIGIT3);
  PlatformEx.waitOnFxThread();
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT4).release(KeyCode.CONTROL).release(KeyCode.DIGIT4);
  PlatformEx.waitOnFxThread();
  assertEquals(7,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT5).release(KeyCode.CONTROL).release(KeyCode.DIGIT5);
  PlatformEx.waitOnFxThread();
  assertEquals(6,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT6).release(KeyCode.CONTROL).release(KeyCode.DIGIT6);
  PlatformEx.waitOnFxThread();
  assertEquals(5,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT7).release(KeyCode.CONTROL).release(KeyCode.DIGIT7);
  PlatformEx.waitOnFxThread();
  assertEquals(4,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT8).release(KeyCode.CONTROL).release(KeyCode.DIGIT8);
  PlatformEx.waitOnFxThread();
  assertEquals(3,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.ESCAPE);
  press(KeyCode.CONTROL).press(KeyCode.DIGIT9).release(KeyCode.CONTROL).release(KeyCode.DIGIT9);
  PlatformEx.waitOnFxThread();
  assertEquals(2,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.END);
  assertEquals(1,selectedIssueId);
  clearSelectedIssueId();
  push(KeyCode.HOME);
  sleep(1000);
  assertEquals(10,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(8,selectedIssueId);
  clearSelectedIssueId();
  push(getKeyCode("String_Node_Str"));
  assertEquals(9,selectedIssueId);
  clearSelectedIssueId();
  press(KeyCode.CONTROL).press(KeyCode.P).release(KeyCode.P).release(KeyCode.CONTROL);
  push(DOUBLE_PRESS.getCode()).push(DOUBLE_PRESS.getCode());
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(0,panelIndex);
  clearPanelIndex();
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,panelIndex);
  clearPanelIndex();
  ComboBox<String> comboBox=find("String_Node_Str");
  doubleClick(comboBox);
  assertEquals(true,comboBox.isFocused());
  press(KeyCode.ESCAPE).release(KeyCode.ESCAPE);
  assertEquals(false,comboBox.isFocused());
  clearUiComponentFocusEventType();
  click("String_Node_Str");
  ListPanel issuePanel=find("String_Node_Str");
  push(KeyCode.HOME);
  int issueIdBeforeMark=selectedIssueId;
  int issueIdExpected=issueIdBeforeMark - 1;
  push(getKeyCode("String_Node_Str"));
  assertEquals(issueIdExpected,selectedIssueId);
  push(getKeyCode("String_Node_Str"));
  assertEquals(true,issuePanel.getSelectedIssue().isCurrentlyRead());
  push(KeyCode.END);
  push(getKeyCode("String_Node_Str"));
  assertEquals(1,selectedIssueId);
  assertEquals(true,issuePanel.getSelectedIssue().isCurrentlyRead());
  push(getKeyCode("String_Node_Str"));
  assertEquals(false,issuePanel.getSelectedIssue().isCurrentlyRead());
  clearSelectedIssueId();
  click("String_Node_Str");
  type("String_Node_Str");
  press(KeyCode.SHIFT).press(KeyCode.SEMICOLON).release(KeyCode.SEMICOLON).release(KeyCode.SHIFT);
  type("String_Node_Str");
  push(KeyCode.ENTER);
  push(KeyCode.SPACE).push(KeyCode.SPACE);
  push(getKeyCode("String_Node_Str"));
  assertEquals(5,selectedIssueId);
  press(KeyCode.CONTROL).press(KeyCode.N).release(KeyCode.N).release(KeyCode.CONTROL);
  assertEquals(true,stage.isIconified());
}