3 puts "Storage of Ocaf documents in BIN file format in old document version"
8 SetExtStringArray D 0:1 0 1 3 Hello hallo Bonjour
9 set FileV7 ${imagedir}/bug29217_doc7.cbf
10 set FileV10 ${imagedir}/bug29217_doc10.cbf
16 SetStorageFormatVersion D 7
21 puts "Testing for BIN file format in new version document"
25 set info [Attributes D10 0:1]
26 if { [regexp "TDataStd_ExtStringArray" ${info}] != 1 } {
27 puts "Error : there is not TDataStd_ExtStringArray attribute in new version document"
29 puts "OK : there is TDataStd_ExtStringArray attribute in new version document"
31 if { [regexp "TDataStd_TreeNode" ${info}] != 1 } {
32 puts "Error : there is not TDataStd_TreeNode attribute in new version document"
34 puts "OK : there is TDataStd_TreeNode attribute in new version document"
36 if { [regexp "TDataXtd_Presentation" ${info}] != 1 } {
37 puts "Error : there is not TDataXtd_Presentation attribute in new version document"
39 puts "OK : there is TDataXtd_Presentation attribute in new version document"
41 set info [GetExtStringArray D10 0:1]
42 if { [regexp "Hello" ${info}] != 1 } {
43 puts "Error : there is not \"Hello\" word in TDataStd_ExtStringArray attribute in new version document"
45 puts "OK : there is \"Hello\" word in TDataStd_ExtStringArray attribute in new version document"
47 if { [regexp "hallo" ${info}] != 1 } {
48 puts "Error : there is not \"hallo\" word in TDataStd_ExtStringArray attribute in new version document"
50 puts "OK : there is \"hallo\" word in TDataStd_ExtStringArray attribute in new version document"
52 if { [regexp "Bonjour" ${info}] != 1 } {
53 puts "Error : there is not \"Bonjour\" word in TDataStd_ExtStringArray attribute in new version document"
55 puts "OK : there is \"Bonjour\" word in TDataStd_ExtStringArray attribute in new version document"
58 puts "\nTesting for BIN file format in old version document"
61 set info [Attributes D7 0:1]
62 if { [regexp "TDataStd_ExtStringArray" ${info}] != 1 } {
63 puts "Error : there is not TDataStd_ExtStringArray attribute in old version document"
65 puts "OK : there is TDataStd_ExtStringArray attribute in old version document"
67 if { [regexp "TDataStd_TreeNode" ${info}] != 1 } {
68 puts "Error : there is not TDataStd_TreeNode attribute in old version document"
70 puts "OK : there is TDataStd_TreeNode attribute in old version document"
72 if { [regexp "TDataXtd_Presentation" ${info}] != 1 } {
73 puts "Error : there is not TDataXtd_Presentation attribute in old version document"
75 puts "OK : there is TDataXtd_Presentation attribute in old version document"
77 set info [GetExtStringArray D7 0:1]
78 if { [regexp "Hello" ${info}] != 1 } {
79 puts "Error : there is not \"Hello\" word in TDataStd_ExtStringArray attribute in old version document"
81 puts "OK : there is \"Hello\" word in TDataStd_ExtStringArray attribute in old version document"
83 if { [regexp "hallo" ${info}] != 1 } {
84 puts "Error : there is not \"hallo\" word in TDataStd_ExtStringArray attribute in old version document"
86 puts "OK : there is \"hallo\" word in TDataStd_ExtStringArray attribute in old version document"
88 if { [regexp "Bonjour" ${info}] != 1 } {
89 puts "Error : there is not \"Bonjour\" word in TDataStd_ExtStringArray attribute in old version document"
91 puts "OK : there is \"Bonjour\" word in TDataStd_ExtStringArray attribute in old version document"