1
0
mirror of https://git.dev.opencascade.org/repos/occt.git synced 2025-04-03 17:56:21 +03:00
occt/tests/bugs/vis/bug1188
tiv 293211aee0 0030592: Draw Harness, ViewerTest - provide vbackground command unifying vsetbg, vsetbgmode, vsetgradientbg, vsetgrbgmode, vsetcolorbg
A new command vbackground is created. Old background commands are made aliases for the newly created command (including vsetdefaultbg).
Tests are modified using newly added command vbackground.
2019-04-22 19:31:24 +03:00

12 lines
311 B
Plaintext
Executable File

puts "================"
puts "0001188: Impossible to set background image for V3d_View"
puts "================"
puts ""
vinit View1
vbackground -image [locate_data_file OCC1188.gif]
if { [vreadpixel 200 200 rgb name] != "WHITE" } { puts "Error: image background is not set" }
vdump $imagedir/${casename}.png