mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
Test timinig fixes
This commit is contained in:
parent
cf95afc23d
commit
900513ba93
9 changed files with 111 additions and 95 deletions
|
@ -416,30 +416,30 @@ public class GraphActionsTest extends AbstractGhidraHeadedIntegrationTest {
|
|||
|
||||
@Test
|
||||
public void testGetActiveGraph() throws Exception {
|
||||
|
||||
|
||||
GraphDisplayBroker broker = tool.getService(GraphDisplayBroker.class);
|
||||
GraphDisplayProvider service = broker.getGraphDisplayProvider("Default Graph Display");
|
||||
GraphDisplay firstDisplay = service.getActiveGraphDisplay();
|
||||
assertNotNull(firstDisplay);
|
||||
|
||||
|
||||
showGraph();
|
||||
GraphDisplay secondDisplay = service.getActiveGraphDisplay();
|
||||
assertNotNull(secondDisplay);
|
||||
assertNotSame(firstDisplay, secondDisplay);
|
||||
|
||||
|
||||
showGraph();
|
||||
GraphDisplay thirdDisplay = service.getActiveGraphDisplay();
|
||||
assertNotNull(thirdDisplay);
|
||||
assertNotSame(firstDisplay, thirdDisplay);
|
||||
assertNotSame(secondDisplay, thirdDisplay);
|
||||
|
||||
|
||||
close(thirdDisplay);
|
||||
close(firstDisplay);
|
||||
|
||||
|
||||
GraphDisplay activeDisplay = service.getActiveGraphDisplay();
|
||||
assertNotNull(activeDisplay);
|
||||
assertSame(secondDisplay, activeDisplay);
|
||||
|
||||
|
||||
close(secondDisplay);
|
||||
activeDisplay = service.getActiveGraphDisplay();
|
||||
assertNull(activeDisplay);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue