Skip to content

Commit

Permalink
added test refs #11760
Browse files Browse the repository at this point in the history
  • Loading branch information
namdre committed Oct 4, 2022
1 parent bca6143 commit 9c6ce99
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/complex/traci/gui/gui/output.complex
Expand Up @@ -28,3 +28,7 @@ edge selected: False
veh selected: True
edge selected: True
screenshot dimensions (500, 500, 4)
adding view
views ('View #0', 'newView')
removing view
views ('View #0',)
10 changes: 10 additions & 0 deletions tests/complex/traci/gui/gui/runner.py
Expand Up @@ -76,4 +76,14 @@
traci.simulationStep()
pic = imread("out.png")
print("screenshot dimensions", pic.shape)
print("adding view")
traci.gui.addView("newView", "real world")
for i in range(100):
traci.simulationStep()
print("views", traci.gui.getIDList())
print("removing view")
traci.gui.removeView("newView")
for i in range(100):
traci.simulationStep()
print("views", traci.gui.getIDList())
traci.close()

0 comments on commit 9c6ce99

Please sign in to comment.