mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-27 15:13:09 +08:00
Added test debug
This commit is contained in:
+8
-1
@@ -502,7 +502,14 @@ public class KeyBindingUtilsTest extends AbstractGhidraHeadedIntegrationTest {
|
|||||||
assertEquals(keyText.toUpperCase(), keyField.getText());
|
assertEquals(keyText.toUpperCase(), keyField.getText());
|
||||||
|
|
||||||
runSwing(() -> panel.apply());
|
runSwing(() -> panel.apply());
|
||||||
assertEquals(KeyStroke.getKeyStroke(keyCode, 0), action.getKeyBinding());
|
|
||||||
|
if (!Objects.equals(KeyStroke.getKeyStroke(keyCode, 0), action.getKeyBinding())) {
|
||||||
|
|
||||||
|
Msg.debug(this, "Action did not take keybinding: " + action.getFullName());
|
||||||
|
|
||||||
|
assertEquals("Key binding was not applied", KeyStroke.getKeyStroke(keyCode, 0),
|
||||||
|
action.getKeyBinding());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void selectRowForAction(DockingActionIf action) throws Exception {
|
private void selectRowForAction(DockingActionIf action) throws Exception {
|
||||||
|
|||||||
Reference in New Issue
Block a user