Skip to content

Commit

Permalink
implement test for getCursorOffset()
Browse files Browse the repository at this point in the history
  • Loading branch information
koentsje committed Mar 26, 2014
1 parent 89f8336 commit 79cc468
Showing 1 changed file with 8 additions and 0 deletions.
Expand Up @@ -16,4 +16,12 @@ public void testConstructor() {
Assert.assertNull(documentImpl.cursorListener);
}

@Test
public void testGetCursorOffset() {
Assert.assertEquals(0, documentImpl.getCursorOffset());
documentImpl.cursorOffset = 7;
Assert.assertEquals(7, documentImpl.getCursorOffset());

}

}

0 comments on commit 79cc468

Please sign in to comment.