24
|
1 |
##############################################################
|
|
2 |
# File Container - AdoptNode: appends document with file
|
|
3 |
# containers to another and checks file data
|
|
4 |
##############################################################
|
|
5 |
|
|
6 |
[Test]
|
|
7 |
title File_Container_AdoptNode
|
|
8 |
create xmlengtester test
|
|
9 |
test FileContainerAdoptNode
|
|
10 |
delete test
|
|
11 |
[Endtest]
|
|
12 |
##############################################################
|
|
13 |
# File Container - Cid
|
|
14 |
##############################################################
|
|
15 |
|
|
16 |
[Test]
|
|
17 |
title File_Container_Cid
|
|
18 |
create xmlengtester test
|
|
19 |
test FileContainerCid
|
|
20 |
delete test
|
|
21 |
[Endtest]
|
|
22 |
##############################################################
|
|
23 |
# File Container - Cid: create 2 filecontainers with the same
|
|
24 |
# cid,create third filecontainer (other cid), do ReplaceWith:
|
|
25 |
# filecontainer1 -> filecontainer2, returns 2 filecontainers
|
|
26 |
##############################################################
|
|
27 |
|
|
28 |
[Test]
|
|
29 |
title File_Container_CidError
|
|
30 |
create xmlengtester test
|
|
31 |
test FileContainerCidError
|
|
32 |
delete test
|
|
33 |
[Endtest]
|
|
34 |
##############################################################
|
|
35 |
# File Container - Clone
|
|
36 |
##############################################################
|
|
37 |
|
|
38 |
[Test]
|
|
39 |
title File_Container_Clone
|
|
40 |
create xmlengtester test
|
|
41 |
test FileContainerClone
|
|
42 |
delete test
|
|
43 |
[Endtest]
|
|
44 |
##############################################################
|
|
45 |
# File Container - CopyTo
|
|
46 |
##############################################################
|
|
47 |
|
|
48 |
[Test]
|
|
49 |
title File_Container_CopyTo
|
|
50 |
create xmlengtester test
|
|
51 |
test FileContainerCopyTo
|
|
52 |
delete test
|
|
53 |
[Endtest]
|
|
54 |
##############################################################
|
|
55 |
# File Container - Copy: copy container, check its data: cid,
|
|
56 |
# size, and chech if on list there is 3elements+1copy
|
|
57 |
##############################################################
|
|
58 |
|
|
59 |
[Test]
|
|
60 |
title File_Container_Copy
|
|
61 |
create xmlengtester test
|
|
62 |
test FileContainerCopy
|
|
63 |
delete test
|
|
64 |
[Endtest]
|
|
65 |
##############################################################
|
|
66 |
# File Container - Copy: copy node with file containers,
|
|
67 |
# checks its element data
|
|
68 |
##############################################################
|
|
69 |
|
|
70 |
[Test]
|
|
71 |
title File_Container_Copy2
|
|
72 |
create xmlengtester test
|
|
73 |
test FileContainerCopy2
|
|
74 |
delete test
|
|
75 |
[Endtest]
|
|
76 |
##############################################################
|
|
77 |
# File Container - Copy3: copy node with file containers to
|
|
78 |
# another RDocument
|
|
79 |
##############################################################
|
|
80 |
|
|
81 |
[Test]
|
|
82 |
title File_Container_Copy3
|
|
83 |
create xmlengtester test
|
|
84 |
test FileContainerCopy3
|
|
85 |
delete test
|
|
86 |
[Endtest]
|
|
87 |
##############################################################
|
|
88 |
# File Container - Copy4: copy grandparents, check if file
|
|
89 |
# containers are there and not changed
|
|
90 |
##############################################################
|
|
91 |
|
|
92 |
[Test]
|
|
93 |
title File_Container_Copy4
|
|
94 |
create xmlengtester test
|
|
95 |
test FileContainerCopy4
|
|
96 |
delete test
|
|
97 |
[Endtest]
|
|
98 |
##############################################################
|
|
99 |
# File Container - File: checks file container name
|
|
100 |
##############################################################
|
|
101 |
|
|
102 |
[Test]
|
|
103 |
title File_Container_File
|
|
104 |
create xmlengtester test
|
|
105 |
test FileContainerFile
|
|
106 |
delete test
|
|
107 |
[Endtest]
|
|
108 |
##############################################################
|
|
109 |
# File Container - GetList: creates 19 filecontainers and
|
|
110 |
# checks its name, cid...
|
|
111 |
##############################################################
|
|
112 |
|
|
113 |
[Test]
|
|
114 |
title File_Container_GetList
|
|
115 |
create xmlengtester test
|
|
116 |
test FileContainerGetList
|
|
117 |
delete test
|
|
118 |
[Endtest]
|
|
119 |
##############################################################
|
|
120 |
# File Container - MoveAfterSibling: checks moving parent node
|
|
121 |
# after another node
|
|
122 |
##############################################################
|
|
123 |
|
|
124 |
[Test]
|
|
125 |
title File_Container_MoveAfterSibling
|
|
126 |
create xmlengtester test
|
|
127 |
test FileContainerMoveAfterSibling
|
|
128 |
delete test
|
|
129 |
[Endtest]
|
|
130 |
##############################################################
|
|
131 |
# File Container - MoveBeforeSibling: checks moving parent node
|
|
132 |
# before another node
|
|
133 |
##############################################################
|
|
134 |
|
|
135 |
[Test]
|
|
136 |
title File_Container_MoveBeforeSibling
|
|
137 |
create xmlengtester test
|
|
138 |
test FileContainerMoveBeforeSibling
|
|
139 |
delete test
|
|
140 |
[Endtest]
|
|
141 |
##############################################################
|
|
142 |
# File Container - MoveTo: checks moving parent node
|
|
143 |
# to the new place in nodes tree
|
|
144 |
##############################################################
|
|
145 |
|
|
146 |
[Test]
|
|
147 |
title File_Container_MoveTo
|
|
148 |
create xmlengtester test
|
|
149 |
test FileContainerMoveTo
|
|
150 |
delete test
|
|
151 |
[Endtest]
|
|
152 |
##############################################################
|
|
153 |
# File Container - NodeType
|
|
154 |
##############################################################
|
|
155 |
|
|
156 |
[Test]
|
|
157 |
title File_Container_NodeType
|
|
158 |
create xmlengtester test
|
|
159 |
test FileContainerNodeType
|
|
160 |
delete test
|
|
161 |
[Endtest]
|
|
162 |
##############################################################
|
|
163 |
# File Container - ReconcileNamespaces: checks files status
|
|
164 |
# after operation - reconcile - on namespaces
|
|
165 |
##############################################################
|
|
166 |
|
|
167 |
[Test]
|
|
168 |
title File_Container_ReconcileNamespaces
|
|
169 |
create xmlengtester test
|
|
170 |
test FileContainerReconcileNamespaces
|
|
171 |
delete test
|
|
172 |
[Endtest]
|
|
173 |
##############################################################
|
|
174 |
# File Container - Remove:input 3 files, removes second,
|
|
175 |
# check if cid of 1 and 3 comapare with test data -
|
|
176 |
# returns 2 files in list
|
|
177 |
##############################################################
|
|
178 |
|
|
179 |
[Test]
|
|
180 |
title File_Container_Remove
|
|
181 |
create xmlengtester test
|
|
182 |
test FileContainerRemove
|
|
183 |
delete test
|
|
184 |
[Endtest]
|
|
185 |
##############################################################
|
|
186 |
# File Container - Remove2: input third file with the same
|
|
187 |
# cid as first file, remove it - returns 2 files in list
|
|
188 |
##############################################################
|
|
189 |
|
|
190 |
[Test]
|
|
191 |
title File_Container_Remove2
|
|
192 |
create xmlengtester test
|
|
193 |
test FileContainerRemove2
|
|
194 |
delete test
|
|
195 |
[Endtest]
|
|
196 |
##############################################################
|
|
197 |
# File Container - Remove3: input some other data and move it
|
|
198 |
# before file container end then remove some file from list
|
|
199 |
##############################################################
|
|
200 |
|
|
201 |
[Test]
|
|
202 |
title File_Container_Remove3
|
|
203 |
create xmlengtester test
|
|
204 |
test FileContainerRemove3
|
|
205 |
delete test
|
|
206 |
[Endtest]
|
|
207 |
##############################################################
|
|
208 |
# File Container - ReplaceWith: input 2 files,
|
|
209 |
# replace second one (with cid1) with third one (cid2),
|
|
210 |
##############################################################
|
|
211 |
|
|
212 |
[Test]
|
|
213 |
title File_Container_ReplaceWith
|
|
214 |
create xmlengtester test
|
|
215 |
test FileContainerReplaceWith
|
|
216 |
delete test
|
|
217 |
[Endtest]
|
|
218 |
##############################################################
|
|
219 |
# File Container - SetAsFirstSibling: checks moving parent node
|
|
220 |
# to the first place
|
|
221 |
##############################################################
|
|
222 |
|
|
223 |
[Test]
|
|
224 |
title File_Container_SetAsFirstSibling
|
|
225 |
create xmlengtester test
|
|
226 |
test FileContainerSetAsFirstSibling
|
|
227 |
delete test
|
|
228 |
[Endtest]
|
|
229 |
##############################################################
|
|
230 |
# File Container - SetAsLastSibling: checks moving parent node
|
|
231 |
# to the last place
|
|
232 |
##############################################################
|
|
233 |
|
|
234 |
[Test]
|
|
235 |
title File_Container_SetAsLastSibling
|
|
236 |
create xmlengtester test
|
|
237 |
test FileContainerSetAsLastSibling
|
|
238 |
delete test
|
|
239 |
[Endtest]
|
|
240 |
##############################################################
|
|
241 |
# File Container - Size
|
|
242 |
##############################################################
|
|
243 |
|
|
244 |
[Test]
|
|
245 |
title File_Container_Size
|
|
246 |
create xmlengtester test
|
|
247 |
test FileContainerSize
|
|
248 |
delete test
|
|
249 |
[Endtest]
|
|
250 |
##############################################################
|
|
251 |
# File Container - SubstituteFor
|
|
252 |
##############################################################
|
|
253 |
|
|
254 |
[Test]
|
|
255 |
title File_Container_SubstituteFor
|
|
256 |
create xmlengtester test
|
|
257 |
test FileContainerSubstituteFor
|
|
258 |
delete test
|
|
259 |
[Endtest]
|
|
260 |
##############################################################
|
|
261 |
# File Container - Unlink: input 3 files, unlink one,
|
|
262 |
# list.count should be 2
|
|
263 |
##############################################################
|
|
264 |
|
|
265 |
[Test]
|
|
266 |
title File_Container_Unlink
|
|
267 |
create xmlengtester test
|
|
268 |
test FileContainerUnlink
|
|
269 |
delete test
|
|
270 |
[Endtest]
|
|
271 |
|