| edu.rice.cs.drjava.model.MultiThreadedTestCase edu.rice.cs.drjava.ui.DefinitionsPaneTest
DefinitionsPaneTest | final public class DefinitionsPaneTest extends MultiThreadedTestCase (Code) | | Tests the Definitions Pane
version: $Id: DefinitionsPaneTest.java 4255 2007-08-28 19:17:37Z mgricken $ |
Inner Class :class KeyTestListener implements KeyListener | |
Field Summary | |
final public static Log | _log |
setUp | public void setUp() throws Exception(Code) | | Setup method for each JUnit test case.
|
testActiveAndInactive | public void testActiveAndInactive()(Code) | | |
testBackspace | public void testBackspace()(Code) | | |
testMatchBraceText | public void testMatchBraceText()(Code) | | Tests the functionality that allows brace matching that displays the line matched in the status bar
|
testMetaKeyPress | public void testMetaKeyPress() throws BadLocationException(Code) | | Tests that a simulated key press with the meta modifier is correct. Reveals bug 676586.
|
testMultilineCommentOrUncommentAfterScroll | public void testMultilineCommentOrUncommentAfterScroll() throws BadLocationException(Code) | | Tests that undoing/redoing a multi-line comment/uncomment will restore the caret position
|
testShiftBackspace | public void testShiftBackspace() throws BadLocationException(Code) | | Tests that shift backspace works the same as backspace. (Ease of use issue 693253). Ideally, this test should
be lighter weight, and not require the creation of an entire MainFrame+GlobalModel. Refactor?
NOTE: This test doesn't work yet, since we can't currently bind two keys to the same action. This should be
implemented as part of feature request 683300.
|
testTypeBraceNotInCode | public void testTypeBraceNotInCode() throws BadLocationException(Code) | | Tests that typing a brace in a string/comment does not cause an indent.
|
testTypeEnterNotInCode | public void testTypeEnterNotInCode() throws BadLocationException, InterruptedException, InvocationTargetException(Code) | | Tests that typing Enter in a string/comment does cause an indent. This behavior works in practice, but I can't
get the test to work. If we use definitions.processKeyEvent, the caret position is not updated, so the " * "
is not inserted. If we try to dispatchEvent from the EventDispatchingThread, it hangs...?
|
Fields inherited from edu.rice.cs.drjava.model.MultiThreadedTestCase | protected static volatile boolean _testFailed(Code)(Java Doc)
|
|
|