1 puts "================"
4 puts "================"
6 #######################################################################################
7 # Viewer is always updated on closing local contexts
8 #######################################################################################
11 box b2 50 50 50 10 10 10
37 #QASetChoiceMode EDGE ON
40 set BeforeNbSelected [vnbselected]
50 set AfterNbSelected [vnbselected]
52 checkcolor ${x1} ${y1} ${Selection_R} ${Selection_G} ${Selection_B}
53 checkcolor ${x2} ${y2} ${Selection_R} ${Selection_G} ${Selection_B}
54 checkcolor ${x3} ${y3} ${Selection_R} ${Selection_G} ${Selection_B}
55 checkcolor ${x4} ${y4} ${Selection_R} ${Selection_G} ${Selection_B}
56 checkcolor ${x5} ${y5} ${Selection_R} ${Selection_G} ${Selection_B}
58 if {${BeforeNbSelected} == 0} {
59 puts "OCC1629: OK (case 6: before selection)"
61 puts "OCC1629: Error (case 6: before selection)"
64 if {${AfterNbSelected} == 5} {
65 puts "OCC1629: OK (case 7: after selection)"
67 puts "OCC1629: Error (case 7: after selection)"
75 puts "Viewer is not updated on closing local context,"
76 puts "but we can not check it by automatic test!"
78 puts "5 edges must be selected on the viewer,"
79 puts "but must be CloseNbSelected = 0 !"
83 set CloseNbSelected [vnbselected]
85 checkcolor ${x1} ${y1} 1 1 0
86 checkcolor ${x2} ${y2} 1 1 0
87 checkcolor ${x3} ${y3} 1 1 0
88 checkcolor ${x4} ${y4} 1 1 0
89 checkcolor ${x5} ${y5} 1 1 0
91 if {${CloseNbSelected} == 0} {
92 puts "OCC1629: OK (case 13: after close local context)"
94 puts "OCC1629: Error (case 13: after close local context)"
97 checkview -screenshot -3d -path ${imagedir}/${test_image}.png