mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-06-02 10:47:10 +08:00
Merge remote-tracking branch 'origin/GP-0-dragonmacher-test-fixes-12-13-22'
This commit is contained in:
+1
-1
@@ -264,7 +264,7 @@ public class DataTypeSelectionDialogTest extends AbstractGhidraHeadedIntegration
|
||||
}
|
||||
|
||||
private void waitForDialogToClose(DockingDialog dockingDialog) {
|
||||
waitForCondition(() -> !dialog.isShowing(), "Dialog did not close!");
|
||||
waitForCondition(() -> !dockingDialog.isShowing(), "Dialog did not close!");
|
||||
waitForSwing();
|
||||
}
|
||||
|
||||
|
||||
+5
-5
@@ -175,8 +175,8 @@ public class ToolActionManagerTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
int count = tc.getToolCount();
|
||||
|
||||
String toolNamePrefix = "TestCodeBrowser";
|
||||
final File cbFile = ResourceManager.getResourceFile(
|
||||
"defaultTools/" + toolNamePrefix + ToolUtils.TOOL_EXTENSION);
|
||||
final File cbFile = ResourceManager
|
||||
.getResourceFile("defaultTools/" + toolNamePrefix + ToolUtils.TOOL_EXTENSION);
|
||||
assertNotNull(cbFile);
|
||||
|
||||
DockingActionIf importAction = getAction("Import Tool");
|
||||
@@ -413,7 +413,7 @@ public class ToolActionManagerTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
assertTrue(!cb.isSelected());
|
||||
}
|
||||
|
||||
final JButton selectAllButton = (JButton) getInstanceField("selectAllButton", d);
|
||||
JButton selectAllButton = findButtonByText(d, "Select All");
|
||||
runSwing(() -> selectAllButton.doClick());
|
||||
|
||||
pressButtonByText(d, "OK");
|
||||
@@ -433,8 +433,8 @@ public class ToolActionManagerTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
}
|
||||
newList.removeAll(origList);
|
||||
runSwing(() -> {
|
||||
for (int i = 0; i < newList.size(); i++) {
|
||||
tc.remove(newList.get(i));
|
||||
for (String element : newList) {
|
||||
tc.remove(element);
|
||||
}
|
||||
});
|
||||
assertEquals(origList.size(), tc.getToolCount());
|
||||
|
||||
Reference in New Issue
Block a user