void () { VirtualFile f = createChildData(myRoot, "f.txt"); setBinaryContent(f, "old".getBytes(StandardCharsets.UTF_8)); setBinaryContent(f, "current".getBytes(StandardCharsets.UTF_8)); FileHistoryDialogModel m = createFileModelAndSelectRevisions(f, 0, 0); assertDiffContents("old", "current", m); assertTrue(getRightDiffContent(m) instanceof DocumentContent); }