Search in sources :

Example 1 with DocumentFragmentContent

use of com.intellij.diff.actions.DocumentFragmentContent in project intellij-community by JetBrains.

the class SelectionHistoryDialogTest method testDiffContentsAndTitleForCurrentRevision.

public void testDiffContentsAndTitleForCurrentRevision() throws IOException {
    initModelOnSecondLineAndSelectRevisions(0, 0);
    assertEquals("Current", dm.getRightTitle(new NullRevisionsProgress()));
    DiffContent right = dm.getRightDiffContent(new NullRevisionsProgress());
    assertContent("bcd", right);
    assertTrue(right instanceof DocumentFragmentContent);
}
Also used : NullRevisionsProgress(com.intellij.history.integration.ui.models.NullRevisionsProgress) DiffContent(com.intellij.diff.contents.DiffContent) DocumentFragmentContent(com.intellij.diff.actions.DocumentFragmentContent)

Aggregations

DocumentFragmentContent (com.intellij.diff.actions.DocumentFragmentContent)1 DiffContent (com.intellij.diff.contents.DiffContent)1 NullRevisionsProgress (com.intellij.history.integration.ui.models.NullRevisionsProgress)1