Test fixes

This commit is contained in:
dragonmacher 2023-02-15 10:52:16 -05:00
parent c01e6fc4a1
commit 32efa223e7
4 changed files with 5 additions and 3 deletions

View File

@ -390,8 +390,7 @@ public class SearchTextPlugin3Test extends AbstractGhidraHeadedIntegrationTest {
Collections.sort(list); Collections.sort(list);
Collections.reverse(list); Collections.reverse(list);
for (int i = 0; i < list.size(); i++) { for (Address addr : list) {
Address addr = list.get(i);
pressSearchButton(dialog, searchButton); pressSearchButton(dialog, searchButton);
ProgramLocation loc = cbPlugin.getCurrentLocation(); ProgramLocation loc = cbPlugin.getCurrentLocation();
assertEquals(addr, loc.getAddress()); assertEquals(addr, loc.getAddress());
@ -627,7 +626,8 @@ public class SearchTextPlugin3Test extends AbstractGhidraHeadedIntegrationTest {
setToggleButtonSelected(cb, true); setToggleButtonSelected(cb, true);
// install our own task monitor so we can cancel before the task finishes // install our own task monitor so we can cancel before the task finishes
CancellingStubTaskMonitorComponent testMonitor = new CancellingStubTaskMonitorComponent(); CancellingStubTaskMonitorComponent testMonitor =
runSwing(() -> new CancellingStubTaskMonitorComponent());
setInstanceField("taskMonitorComponent", dialog, testMonitor); setInstanceField("taskMonitorComponent", dialog, testMonitor);
setText(tf, "hello"); setText(tf, "hello");

View File

@ -46,6 +46,7 @@ src/main/resources/images/information.png||FAMFAMFAM Icons - CC 2.5|||famfamfam
src/main/resources/images/kgpg.png||Nuvola Icons - LGPL 2.1|||Nuvola icon set|END| src/main/resources/images/kgpg.png||Nuvola Icons - LGPL 2.1|||Nuvola icon set|END|
src/main/resources/images/left.alternate.png||GHIDRA||||END| src/main/resources/images/left.alternate.png||GHIDRA||||END|
src/main/resources/images/left.png||GHIDRA||||END| src/main/resources/images/left.png||GHIDRA||||END|
src/main/resources/images/list-remove.png||Oxygen Icons - LGPL 3.0|||Oxygen icon theme (dual license; LGPL or CC-SA-3.0)|END|
src/main/resources/images/locationIn.gif||GHIDRA||||END| src/main/resources/images/locationIn.gif||GHIDRA||||END|
src/main/resources/images/locationOut.gif||GHIDRA||||END| src/main/resources/images/locationOut.gif||GHIDRA||||END|
src/main/resources/images/openFolder.png||Modified Nuvola Icons - LGPL 2.1||||END| src/main/resources/images/openFolder.png||Modified Nuvola Icons - LGPL 2.1||||END|

View File

Before

Width:  |  Height:  |  Size: 332 B

After

Width:  |  Height:  |  Size: 332 B

View File

@ -491,6 +491,7 @@ public class HelpBuildUtils {
catch (FileSystemNotFoundException e) { catch (FileSystemNotFoundException e) {
try { try {
FileSystems.newFileSystem(uri, Collections.emptyMap()); FileSystems.newFileSystem(uri, Collections.emptyMap());
return Paths.get(uri);
} }
catch (IOException e1) { catch (IOException e1) {
debug("Exception loading filesystem for uri: " + uri + "\n\t" + e1.getMessage()); debug("Exception loading filesystem for uri: " + uri + "\n\t" + e1.getMessage());