Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 9384fc3

Browse filesBrowse files
author
mgricken
committed
Unit test for last night's bugfix.
git-svn-id: file:///tmp/test-svn/trunk@5184 fe72c1cf-3628-48e9-8b72-1c46755d3cff
1 parent d7f8835 commit 9384fc3
Copy full SHA for 9384fc3

1 file changed

+11Lines changed: 11 additions & 0 deletions

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocumentTest.java‎

Copy file name to clipboardExpand all lines: drjava/src/edu/rice/cs/drjava/model/definitions/DefinitionsDocumentTest.java
+11Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1015,6 +1015,17 @@ public void textUndoAndRedoAfterMultipleLineCommentAndUncomment()
10151015
assertEquals("redo uncommenting",text, _doc.getText());
10161016
}
10171017

1018+
/** Verify that uncommenting an empty document does not crash
1019+
* @throws BadLocationException
1020+
*/
1021+
public void testUncommentEmpty()
1022+
throws BadLocationException {
1023+
String text = "";
1024+
1025+
_doc.uncommentLines(0,_doc.getLength());
1026+
assertEquals("uncommenting",text, _doc.getText());
1027+
}
1028+
10181029
/** Test method for CompoundUndoManager. Tests that the nested compound edit functionality works correctly.
10191030
* @throws BadLocationException
10201031
*/

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.