mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Tests - fixed tests related to rename of the next/previous actions
This commit is contained in:
parent
3b3b7259bc
commit
6d604afe31
5 changed files with 8 additions and 8 deletions
|
@ -65,7 +65,7 @@ public class CodeBrowserNavigationSegmentedAddressTest extends AbstractGhidraHea
|
|||
tool.addPlugin(LocationReferencesPlugin.class.getName());
|
||||
tool.addPlugin(MarkerManagerPlugin.class.getName());
|
||||
NextPrevAddressPlugin np = env.getPlugin(NextPrevAddressPlugin.class);
|
||||
prev = getAction(np, "Previous in History Buffer");
|
||||
prev = getAction(np, "Previous Location in History");
|
||||
clearHistory = getAction(np, "Clear History Buffer");
|
||||
cb = env.getPlugin(CodeBrowserPlugin.class);
|
||||
nextFunction = getAction(cb, "Go to next function");
|
||||
|
|
|
@ -76,7 +76,7 @@ public class CodeBrowserTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
pm.openProgram(program.getDomainFile());
|
||||
|
||||
NextPrevAddressPlugin np = env.getPlugin(NextPrevAddressPlugin.class);
|
||||
getAction(np, "Previous in History Buffer");
|
||||
getAction(np, "Previous Location in History");
|
||||
getAction(np, "Clear History Buffer");
|
||||
cb = env.getPlugin(CodeBrowserPlugin.class);
|
||||
fp = cb.getFieldPanel();
|
||||
|
|
|
@ -603,8 +603,8 @@ public class GoToPluginTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
public void testNextPrevious() throws Exception {
|
||||
tool.addPlugin(NextPrevAddressPlugin.class.getName());
|
||||
NextPrevAddressPlugin np = env.getPlugin(NextPrevAddressPlugin.class);
|
||||
DockingActionIf next = getAction(np, "Next in History Buffer");
|
||||
DockingActionIf prev = getAction(np, "Previous in History Buffer");
|
||||
DockingActionIf next = getAction(np, "Next Location in History");
|
||||
DockingActionIf prev = getAction(np, "Previous Location in History");
|
||||
DockingActionIf clear = getAction(np, "Clear History Buffer");
|
||||
assertTrue(!clear.isEnabledForContext(provider.getActionContext(null)));
|
||||
assertTrue(!next.isEnabledForContext(provider.getActionContext(null)));
|
||||
|
@ -765,7 +765,7 @@ public class GoToPluginTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
setOptionToAllowNavigationToOtherOpenPrograms();
|
||||
performOkCallback();
|
||||
|
||||
assertTrue("Expected goto to succeed and dialog to be gone", !dialog.isShowing());
|
||||
assertFalse("Expected goto to succeed and dialog to be gone", dialog.isShowing());
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -75,8 +75,8 @@ public class NavigationHistoryPluginTest extends AbstractGhidraHeadedIntegration
|
|||
cb = env.getPlugin(CodeBrowserPlugin.class);
|
||||
goToService = tool.getService(GoToService.class);
|
||||
navigatable = goToService.getDefaultNavigatable();
|
||||
prevAction = getAction(nextPrevPlugin, "Previous in History Buffer");
|
||||
nextAction = getAction(nextPrevPlugin, "Next in History Buffer");
|
||||
prevAction = getAction(nextPrevPlugin, "Previous Location in History");
|
||||
nextAction = getAction(nextPrevPlugin, "Next Location in History");
|
||||
ProgramManagerPlugin pmp = env.getPlugin(ProgramManagerPlugin.class);
|
||||
undoAction = getAction(pmp, "Undo");
|
||||
redoAction = getAction(pmp, "Redo");
|
||||
|
|
|
@ -2291,7 +2291,7 @@ public abstract class AbstractFunctionGraphTest extends AbstractGhidraHeadedInte
|
|||
}
|
||||
|
||||
protected void navigateBack() {
|
||||
String name = "Previous in History Buffer";
|
||||
String name = "Previous Location in History";
|
||||
|
||||
DockingActionIf action = getAction(tool, "NextPrevAddressPlugin", name);
|
||||
performAction(action, true);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue