mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-22 12:11:55 +00:00
Tests - updated test to handle html-escaped '&'
This commit is contained in:
parent
f0fb31b9c5
commit
e75b1cd6db
@ -101,10 +101,12 @@ public class KeyBindingsTest extends AbstractGhidraHeadedIntegrationTest {
|
||||
selectRowForAction(action1);
|
||||
|
||||
String actualText = getText(statusPane);
|
||||
String description = action1.getDescription();
|
||||
String escaped = description.replaceAll("&", "&");
|
||||
assertTrue(
|
||||
"Description is not updated for action '" + action1.getName() + "'; instead the " +
|
||||
"description is '" + actualText + "'",
|
||||
actualText.indexOf(action1.getDescription()) != -1);
|
||||
"description is '" + actualText + "'\n\tDescrption: " + escaped,
|
||||
actualText.indexOf(escaped) != -1);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
Loading…
Reference in New Issue
Block a user