| |
|
| abbot.editor.recorder.AbstractRecorderFixture abbot.editor.recorder.EventRecorderTest
EventRecorderTest | public class EventRecorderTest extends AbstractRecorderFixture (Code) | | Unit test to verify proper capture of multiple user semantic events when
parsed from a continuous event stream.
TODO: feed the event recorder one or more canned event sequences with the
expected results. Input streams may vary by platform/VM version.
Need a separate test of the canned stream itself against robot-generated
events to ensure things don't change. Currently the input event stream is
not explicit in the tests and is thus resistant to change.
Feeding specific event sequences avoids having to throw up an
IF during testing.
Needs much more testing on multi-step recording.
All recording should be tested here since EventRecorder is the only context
in which the others are used, and individual tests are prone to missing
things at the start or end of a recording.
|
EventRecorderTest | public EventRecorderTest(String name)(Code) | | Create a new test case with the given name.
|
setUp | protected void setUp()(Code) | | |
tearDown | protected void tearDown()(Code) | | |
testCaptureAWTPopupMenuFromButton | public void testCaptureAWTPopupMenuFromButton() throws Exception(Code) | | |
testCaptureActivateDialogFromButton | public void testCaptureActivateDialogFromButton()(Code) | | |
testCaptureFocusTraversal | public void testCaptureFocusTraversal()(Code) | | Tabs are used for focus traversal.
|
testCaptureJumbledKeyEvents | public void testCaptureJumbledKeyEvents()(Code) | | Test an event stream from rapidly typed keys.
|
testCaptureKeyString | public void testCaptureKeyString()(Code) | | Should save no individual key press/release events.
|
testCaptureKeyStringPartiallyShifted | public void testCaptureKeyStringPartiallyShifted()(Code) | | Should save no modifiers, since the modifier gets incorporated into
each key stroke.
|
testCaptureKeyStringShifted | public void testCaptureKeyStringShifted()(Code) | | Should save no modifiers or individual key press/release.
|
testCaptureMnemonic | public void testCaptureMnemonic()(Code) | | |
testCaptureModifier | public void testCaptureModifier()(Code) | | A modifier down/up should be captured that way.
|
testCaptureNumPadKeys | public void testCaptureNumPadKeys()(Code) | | Prefer capturing numeric keypad keystrokes to the characters that are
produced, since keypad operation may produce different behavior than
entering numeric characters.
|
testCapturePopupMenuFromButton | public void testCapturePopupMenuFromButton()(Code) | | |
testCaptureSingleKey | public void testCaptureSingleKey()(Code) | | Ensure that a single key press results in a single keystroke event.
|
testCaptureTextSelection | public void testCaptureTextSelection()(Code) | | |
testCaptureWithNoKeyTypedEvents | public void testCaptureWithNoKeyTypedEvents()(Code) | | |
testMacModifierStripping | public void testMacModifierStripping()(Code) | | |
testMouseThenKey | public void testMouseThenKey()(Code) | | |
testStripShortcutKey | public void testStripShortcutKey()(Code) | | |
|
|
|