0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / xml / data / ocaf / A3
CommitLineData
607a96d4 1set aTestName "caf001-C3"
2puts $aTestName
3
4set QA_DUP 0
5
6# Add an attribute to a data framework
7set aFrom1 1
8set aTo1 2
9set aSetAttr11 3.
10set aSetAttr12 4.
11set aLabel 0:2
12set isDelta 0
13SetRealArray D ${aLabel} ${isDelta} ${aFrom1} ${aTo1} ${aSetAttr11} ${aSetAttr12}
14
15# Close/Open the transaction
16NewCommand D
17
18# Save the document
19set aFile $WorkDirectory/${aTestName}.${FileSuffix}
20
21SaveToFile D $aFile
22
23# Restore the document
24Close D
25Open ${aFile} DD
26
27# Get a value of the attribute
28
29set IsDone [catch {set aGetAttr3 [GetRealArray DD ${aLabel}]} aResult]
30if { ${IsDone} != 0 } {
31 puts "Error : Get a value of TDataStd_RealArray attribute from restoring document"
32} else {
33 set aLen3 [llength ${aGetAttr3}]
34 if { ${aLen3} != [expr ${aTo1} - ${aFrom1} + 1] } {
35 puts "Error : Get a value of TDataStd_RealArray attribute from restoring document"
36 }
37 set aGetAttr41 [lindex ${aGetAttr3} 0]
38 if { ${aSetAttr11} != ${aGetAttr41} } {
39 puts "Error : Get a value of TDataStd_RealArray attribute from restoring document"
40 }
41 set aGetAttr42 [lindex ${aGetAttr3} 1]
42 if { ${aSetAttr12} != ${aGetAttr42} } {
43 puts "Error : Get a value of TDataStd_RealArray attribute from restoring document"
44 }
45}