5 #######################################################################
6 # SelectedShape() and HasSelectedShape() of AIS_InteractiveContext
7 # class do not work as expected.
8 #######################################################################
16 set aSelectionRes [vstate -hasSelected]
17 if { [lsearch $aSelectionRes 0] != -1 } {
18 puts "ERROR: Incorrect result of HasSelectedShape of the context!"
20 vpickselected aSelected
21 set aRes [vstate aSelected]
22 if { $aRes == "aSelected doesn't exist!" } {
23 puts "ERROR: No shape selected in neutral point!"
25 set aCompRes [compare aBox aSelected]
26 if { [lsearch $aCompRes not] != -1 } {
27 puts "ERROR: Selected box and selected shape from the context are not equal!"
35 set aSelectionRes [vstate -hasSelected]
36 if { [lsearch $aSelectionRes 0] != -1 } {
37 puts "ERROR: Incorrect result of HasSelectedShape of the context!"
39 vpickselected aSelected
40 set aRes [vstate aSelected]
41 if { $aRes == "aSelected doesn't exist!" } {
42 puts "ERROR: No shape selected in local selection!"
44 set aCompRes [compare aBox aSelected]
45 if { [lsearch $aCompRes not] != -1 } {
46 puts "ERROR: Selected box and selected solid are not equal!"
49 checkview -screenshot -3d -path ${imagedir}/${test_image}.png