mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
Test fixes
This commit is contained in:
parent
f4f076c3a9
commit
2bd15c1d9c
1 changed files with 4 additions and 4 deletions
|
@ -421,7 +421,7 @@ public class SearchTextPlugin1Test extends AbstractGhidraHeadedIntegrationTest {
|
||||||
assertEquals(getAddr(0x01004192), loc.getAddress());
|
assertEquals(getAddr(0x01004192), loc.getAddress());
|
||||||
assertTrue(loc instanceof CommentFieldLocation);
|
assertTrue(loc instanceof CommentFieldLocation);
|
||||||
assertEquals("Search result not placed at the matching character position", 15,
|
assertEquals("Search result not placed at the matching character position", 15,
|
||||||
((CommentFieldLocation) loc).getCharOffset());
|
loc.getCharOffset());
|
||||||
assertEquals(CodeUnit.PLATE_COMMENT, ((CommentFieldLocation) loc).getCommentType());
|
assertEquals(CodeUnit.PLATE_COMMENT, ((CommentFieldLocation) loc).getCommentType());
|
||||||
|
|
||||||
pressButton(searchButton);
|
pressButton(searchButton);
|
||||||
|
@ -673,7 +673,7 @@ public class SearchTextPlugin1Test extends AbstractGhidraHeadedIntegrationTest {
|
||||||
//
|
//
|
||||||
AddressSet set = getAddressesFromModel(model);
|
AddressSet set = getAddressesFromModel(model);
|
||||||
MarkerService markerService = tool.getService(MarkerService.class);
|
MarkerService markerService = tool.getService(MarkerService.class);
|
||||||
MarkerSet markerSet = markerService.getMarkerSet("Search", program);
|
MarkerSet markerSet = markerService.getMarkerSet("Search Results", program);
|
||||||
assertNotNull(markerSet);
|
assertNotNull(markerSet);
|
||||||
AddressSet addresses = runSwing(() -> markerSet.getAddressSet());
|
AddressSet addresses = runSwing(() -> markerSet.getAddressSet());
|
||||||
assertTrue(set.hasSameAddresses(addresses));
|
assertTrue(set.hasSameAddresses(addresses));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue