0031189: Draw Harness, ViewerTest - send messages to Message::DefaultMessenger()
[occt.git] / tests / bugs / vis / bug26726
CommitLineData
671b6fe0 1puts "============"
2puts "OCC26726 erase selected objects"
3puts "============"
4puts ""
5pload VISUALIZATION
6
7
8vclear
9vclose all
10vinit
11vsetdispmode 1
12
13box b0 5 0 0 1 1 1
14box b1 0 5 0 1 1 1
15box b2 0 0 5 1 1 1
16box b3 5 5 5 1 1 1
17
18vdisplay b0 b1 b2 b3
19
20vdump $imagedir/${casename}_0.png
21
22vfit
23
24vselect 0 0 500 500
25verase
26
27vdump $imagedir/${casename}_1.png
28
29set info_b0 [vreadpixel 205 355 name]
30set info_b1 [vreadpixel 205 190 name]
31set info_b2 [vreadpixel 60 100 name]
32set info_b3 [vreadpixel 350 100 name]
33
34if { $info_b0 != "BLACK 0" || $info_b1 != "BLACK 0" || $info_b2 != "BLACK 0" || $info_b3 != "BLACK 0" } {
35 puts "Error: OCC26726 is reproduced. AIS_InteractiveContext::EraseSelected is incorrect."
36}