Slide 51
Slide 51 text
public void testDecorateWrappingInline() throws Exception {
String text = "ABCDEFG\n" +
"HIJKLMN\n";
ArrayList decorators = Lists.newArrayList("", "");
{
Editable editable =
Editable.Factory.getInstance().newEditable(text);
BaseCommand.Range newRange = BaseCommand.decorateWrappingInline(
editable,
new BaseCommand.Range(2, 4),
decorators
);
assertEquals("ABCDEFG\n" +
"HIJKLMN\n", editable.toString());
assertEquals(new BaseCommand.Range(5, 7), newRange);
}
}