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:
Michael Zhou
2013-07-02 19:03:18 -07:00
parent d808354494
commit ab8c8cd365
10 changed files with 412 additions and 21 deletions

View File

@@ -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