0031682: Visualization - Prs3d_ShadingAspect::SetTransparency() has no effect with...
[occt.git] / tests / xml / data / ocaf / C6
1 set aTestName "caf100-F1"
2 puts ${aTestName}
3
4 # Set a driver guid
5 set driverGuid "5b35ca00-5b78-11d1-8940-080009dc3333"
6
7 # Set a failure
8 set failureNb 13
9
10 # Set a function attribute
11 set aCLabel 0:1:1
12 Label D ${aCLabel}
13 SetFunction D ${aCLabel} ${driverGuid} ${failureNb}
14
15 # Save the document
16 set aFile ${WorkDirectory}/${aTestName}.${FileSuffix}
17
18 SaveToFile D $aFile
19
20 # Restore the document
21 Close D
22 Open ${aFile} DD
23
24 # Get a variable from the label
25 set IsDone [catch {GetFunction DD ${aCLabel} driverGuid2 failureNb2} aResult]
26 if { ${IsDone} != 0 } {
27     puts "Error : Get a value of TFunction_Function attribute from restoring document"
28 } else {
29
30     if { ${failureNb2} != ${failureNb} } {
31         puts "Error : Get a value of TFunction_Function attribute from restoring document"
32     }
33
34     if { ${driverGuid2} != ${driverGuid} } {
35         puts "Error : Get a value of TFunction_Function attribute from restoring document"
36     }
37 }