Adjusting testing cases for current state of OCCT
[occt.git] / tests / bugs / caf / bug73_1
CommitLineData
a87752f3 1puts "==========="
2puts "OCC73"
3puts "BUC61050"
4puts "==========="
5
6pload QAcommands
7
8NewDocument D MDTV-Standard
9UndoLimit D 10
10
11# Close/Open transaction
12NewCommand D
13
14# Set NamedShape attribute
15box aBox1 100 200 300
16set aLabel 0:2
17SetShape D ${aLabel} aBox1
18
19# Initialize 3D viewer
20AISInitViewer D
21
22# Add AISPresentation attribute with parameter NS
23AISSet D ${aLabel} NS
24
25# Display presentation of NamedShape in the viewer
26AISDisplay D ${aLabel}
27
28# Get a selection mode of the shape
29set SelectionMode0 [OCC73_SelectionMode D ${aLabel}]
30
31# Set a selection mode of the shape as 1
32set SelectionMode 1
33OCC73_SelectionMode D ${aLabel} ${SelectionMode}
34
35# Get a selection mode of the shape
36set SelectionMode1 [OCC73_SelectionMode D ${aLabel}]
37
38puts "SelectionMode0 = ${SelectionMode0}"
39puts "SelectionMode1 = ${SelectionMode1}"
40puts "SelectionMode = ${SelectionMode}"
41
42if {${SelectionMode0} == ${SelectionMode1} || ${SelectionMode1} != ${SelectionMode}} then {
43 puts "OCC73: Error"
44} else {
45 puts "OCC73: OK"
46}