Skip to content

Commit 9c121a2

Browse files
committed
Fixed failing test because of incorrect capture window size
1 parent a142008 commit 9c121a2

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

testing/vcs/test_vcs_configurator_resize.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,16 @@
44
x.open()
55
x.configure()
66

7-
x.backend.renWin.SetSize(814, 303)
8-
97
fnm = "test_vcs_configurator_resize.png"
108

119
win = x.backend.renWin
12-
win.Render()
10+
win.SetSize(814, 303)
11+
1312
out_filter = vtk.vtkWindowToImageFilter()
1413
out_filter.SetInput(win)
1514

15+
win.Render()
16+
1617
png_writer = vtk.vtkPNGWriter()
1718
png_writer.SetFileName(fnm)
1819
png_writer.SetInputConnection(out_filter.GetOutputPort())

0 commit comments

Comments
 (0)