Add skipping of common context to CodeMirrorDemo.
Added SkipBar, which handles collapsing and expanding of common text that is longer than the preferred context. Added supporting CodeMirror wrappers. Removed unused addon foldcode.js. Fixed to not create publishedMap if published is null. Change-Id: Iabb3481f72529d2dec412de53416235af220d6d8
This commit is contained in:
@@ -48,7 +48,7 @@ public class EditIteratorTest extends GwtTest {
|
||||
@Test
|
||||
public void testNoAdvance() {
|
||||
EditIterator iter = new EditIterator(lines, 0);
|
||||
assertLineChsEqual(LineCharacter.create(0, 0), iter.advance(0));
|
||||
assertLineChsEqual(LineCharacter.create(0), iter.advance(0));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -66,7 +66,7 @@ public class EditIteratorTest extends GwtTest {
|
||||
@Test
|
||||
public void testEndsOnNewline() {
|
||||
EditIterator iter = new EditIterator(lines, 0);
|
||||
assertLineChsEqual(LineCharacter.create(1, 0), iter.advance(4));
|
||||
assertLineChsEqual(LineCharacter.create(1), iter.advance(4));
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Reference in New Issue
Block a user