lineRange.check(1, 1, shape, container);
lineRange = null;
assertNull(preferenceChange);
// We remove the first and second lines, but the widest one isn't
// changed, therefore the preferred width is not changed
ElementEdit ee = new ElementEdit(root, 0, null, new Element[] { root.getElement(0),
root.getElement(1) });
((DefaultDocumentEvent) event).addEdit(ee);
view.updateDamage(event, shape, factory);
assertNull(lineRange);
preferenceChange.check(isHarmony() ? false : true, true);