use of com.intellij.history.integration.ui.actions.ShowSelectionHistoryAction in project intellij-community by JetBrains.
the class LocalHistoryActionsTest method testShowSelectionHistoryActionForSelection.
public void testShowSelectionHistoryActionForSelection() throws Exception {
editor.getSelectionModel().setSelection(0, 2);
ShowSelectionHistoryAction a = new ShowSelectionHistoryAction();
AnActionEvent e = createEventFor(a, new VirtualFile[] { f }, myProject);
a.update(e);
assertTrue(e.getPresentation().isEnabled());
assertEquals("Show History for Selection", e.getPresentation().getText());
}
use of com.intellij.history.integration.ui.actions.ShowSelectionHistoryAction in project intellij-community by JetBrains.
the class LocalHistoryActionsTest method testShowSelectionHistoryActionIsDisabledForEmptySelection.
public void testShowSelectionHistoryActionIsDisabledForEmptySelection() throws Exception {
ShowSelectionHistoryAction a = new ShowSelectionHistoryAction();
assertStatus(a, f, false);
}
use of com.intellij.history.integration.ui.actions.ShowSelectionHistoryAction in project intellij-community by JetBrains.
the class LocalHistoryActionsTest method testShowSelectionHistoryActionIsDisabledForNonFiles.
public void testShowSelectionHistoryActionIsDisabledForNonFiles() throws IOException {
ShowSelectionHistoryAction a = new ShowSelectionHistoryAction();
assertStatus(a, myRoot, false);
assertStatus(a, null, false);
}
Aggregations