use of com.intellij.diff.contents.DiffContent 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);
}
use of com.intellij.diff.contents.DiffContent in project intellij-community by JetBrains.
the class SelectionHistoryDialogTest method testDiffContents.
public void testDiffContents() throws IOException {
initModelOnSecondLineAndSelectRevisions(0, 1);
DiffContent left = dm.getLeftDiffContent(new NullRevisionsProgress());
DiffContent right = dm.getRightDiffContent(new NullRevisionsProgress());
assertContent("b", left);
assertContent("bc", right);
}
Aggregations