You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This test case reproduces the problem, which is caused by the inline-diff
calculations. If the "showInlineDiffs" is set to false, then the problem does
not appear.
public class DiffUtilsDiffRendererTest extends TestCase {
String first = "anything \n \nother";
String second ="anything\n\nother";
public void testDiffRowGenerator() {
DiffRowGenerator generator = new DiffRowGenerator.Builder()
.showInlineDiffs(true)
.ignoreWhiteSpaces(true)
.ignoreBlankLines(true)
.columnWidth(Integer.MAX_VALUE) // do not wrap
.build();
List<DiffRow> diffRows = generator.generateDiffRows(split(first), split(second));
}
private List<String> split(String content) {
return Arrays.asList(content.split("\n"));
}
}
Original issue reported on code.google.com by zlus...@gmail.com on 13 Oct 2010 at 9:11
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
zlus...@gmail.com
on 13 Oct 2010 at 9:11The text was updated successfully, but these errors were encountered: