forked from vandenoever/odfautotests
-
Notifications
You must be signed in to change notification settings - Fork 0
/
texttests.xml
294 lines (293 loc) · 9.27 KB
/
texttests.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
<?xml version="1.0" encoding="UTF-8"?>
<documenttests xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:o="urn:oasis:names:tc:opendocument:xmlns:office:1.0"
xmlns:style="urn:oasis:names:tc:opendocument:xmlns:style:1.0"
xmlns:text="urn:oasis:names:tc:opendocument:xmlns:text:1.0" xmlns:draw="urn:oasis:names:tc:opendocument:xmlns:drawing:1.0"
xmlns:svg="urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0"
xmlns:fo="urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0"
xmlns:table="urn:oasis:names:tc:opendocument:xmlns:table:1.0" xmlns="http://www.example.org/documenttests"
xsi:schemaLocation="http://www.example.org/documenttests documenttests.xsd">
<test name="simpletext" spec="v1.2-part1/5.1.3">
<input type="odt1.2">
<o:text>
<text:p>hello</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//o:text/text:p)=1" />
</file>
</output>
<pdf />
</test>
<test name="chapter">
<input type="odt1.2">
<o:text>
<text:h text:outline-level="1">Introduction</text:h>
<text:p>
<text:chapter text:display="name" text:outline-level="1" />
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//o:text/text:p//text:chapter) = 1" />
<xpath expr="count(//text:chapter) = 1" />
<xpath expr="//text:chapter/@text:display = 'name'" />
<xpath expr="//text:chapter/@text:outline-level = '1'" />
</file>
</output>
<pdf />
</test>
<test name="angleunit">
<!-- show a rectangle rotated 45 degrees or 0.785 radians -->
<input type="odt1.2">
<o:automatic-styles>
<style:style style:name="gr1" style:family="graphic">
<style:graphic-properties draw:fill="none"
draw:stroke="solid" svg:stroke-color="#000000" svg:stroke-opacity="1"
svg:stroke-width="1pt" />
</style:style>
</o:automatic-styles>
<o:text>
<draw:rect draw:style-name="gr1" text:anchor-type="page"
text:anchor-page-number="1" svg:x="5cm" svg:y="5cm" svg:width="5cm"
svg:height="5mm" draw:transform="skewY(0.785)" />
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//o:text/draw:rect)=1" />
</file>
</output>
<pdf/>
</test>
<test name="mergedcells">
<input type="odt1.2">
<o:text>
<table:table>
<table:table-column
table:number-columns-repeated="2" />
<table:table-row>
<table:table-cell>
<text:p>a1</text:p>
</table:table-cell>
<table:table-cell>
<text:p>b1</text:p>
</table:table-cell>
</table:table-row>
<table:table-row>
<table:table-cell table:number-columns-spanned="2">
<text:p>a2</text:p>
</table:table-cell>
<table:covered-table-cell />
</table:table-row>
</table:table>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//table:table)=1" />
<xpath expr="count(//table:table-cell)=3" />
<xpath expr="count(//table:covered-table-cell)=1" />
<xpath expr="count(//table:table-row)=2" />
<xpath
expr="count(//table:table-column)=1 or count(//table:table-column)=2" />
</file>
</output>
<pdf/>
</test>
<test name="hiddenparagraph">
<input type="odt1.2">
<o:text>
<text:p>
<text:hidden-paragraph text:condition="ooow:true" />
hello
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//text:p)=1" />
<xpath expr="count(//text:hidden-paragraph)=1" />
</file>
</output>
<pdf/>
</test>
<test name="listheader">
<input type="odt1.2">
<o:text>
<text:list>
<text:list-header>
<text:p>hello</text:p>
</text:list-header>
</text:list>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//text:list)=1" />
<xpath expr="count(//text:list-header)=1" />
<xpath expr="count(//text:list/*/text:p)=1" />
</file>
</output>
<pdf/>
</test>
<test name="dropcap">
<input type="odt1.2">
<o:automatic-styles>
<style:style style:name="d" style:family="paragraph">
<style:paragraph-properties>
<style:drop-cap style:lines="3" style:length="word" />
</style:paragraph-properties>
</style:style>
</o:automatic-styles>
<o:text>
<text:p text:style-name="d">This is a paragraph. It contains
lines, words. This is a paragraph. It contains lines, words. This
is a paragraph. It contains lines, words.
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//style:drop-cap)=1" />
<xpath expr="//style:drop-cap/@style:lines=3" />
<xpath expr="//style:drop-cap/@style:length='word'" />
</file>
</output>
<pdf/>
</test>
<test name="annotation">
<input type="odt1.2">
<o:text>
<text:p>
hello
<o:annotation>
<dc:creator>abc</dc:creator>
<dc:date>2012-03-16T08:08:00Z</dc:date>
<text:p>world</text:p>
</o:annotation>
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//o:annotation)=1" />
<xpath expr="count(//dc:creator)=1" />
<xpath expr="count(//o:annotation/text:p)=1" />
</file>
</output>
<pdf/>
</test>
<test name="annotation-end">
<input type="odt1.2">
<o:text>
<text:p>
hello
<o:annotation o:name="foo">
<dc:creator>abc</dc:creator>
<dc:date>2012-03-16T08:08:00Z</dc:date>
<text:p>world</text:p>
</o:annotation>
test
<o:annotation-end o:name="foo" />
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//o:annotation)=1" />
<xpath expr="count(//dc:creator)=1" />
<xpath expr="count(//o:annotation/text:p)=1" />
<xpath expr="count(//o:annotation-end)=1" />
</file>
</output>
<pdf/>
</test>
<test name="backgroundimage">
<input type="odt1.2">
<o:automatic-styles>
<style:style style:name="P1" style:family="paragraph">
<style:paragraph-properties
fo:background-color="transparent">
<style:background-image>
<o:binary-data>iVBORw0KGgoAAAANSUhEUgAAAAEAAAADCAIAAADdv/LVAAAAFElEQVQI12P4z8DAxPD/PwODxH8AFzUEFwvj55wAAAAASUVORK5CYII=
</o:binary-data>
</style:background-image>
</style:paragraph-properties>
<style:text-properties fo:language="nl"
fo:country="NL" />
</style:style>
</o:automatic-styles>
<o:text>
<text:p text:style-name="P1">Hebban olla uogala nestas hagunnan
hinase hi(c) (a)nda thu uuat unbidan uue nu.
</text:p>
</o:text>
</input>
<output types="odt1.0 odt1.1 odt1.2 odt1.2ext">
<file path="content.xml">
<xpath expr="count(//style:background-image)=1" />
</file>
</output>
<pdf>
<mask name="rect">
<rect style="opacity:1;fill:white;fill-opacity:1;stroke-opacity:0"
height="100mm" width="200mm" x="0" xmlns="http://www.w3.org/2000/svg"
y="0" />
</mask>
</pdf>
</test>
<test name="twocolumns">
<input type="odt1.2">
<o:document-styles>
<o:automatic-styles>
<style:style style:name="cols" style:family="section">
<style:section-properties style:editable="false">
<style:columns fo:column-count="2" fo:column-gap="1cm" />
</style:section-properties>
</style:style>
<style:page-layout style:name="cols">
<style:page-layout-properties
fo:page-width="10cm" fo:page-height="20cm" fo:margin="2cm"
fo:margin-top="2cm" fo:margin-bottom="2cm" fo:margin-left="2cm"
fo:margin-right="2cm">
<style:columns fo:column-count="2" fo:column-gap="1cm">
<style:column style:rel-width="1*" fo:start-indent="0cm"
fo:end-indent="5mm" />
<style:column style:rel-width="1*" fo:start-indent="5mm"
fo:end-indent="0cm" />
</style:columns>
</style:page-layout-properties>
</style:page-layout>
</o:automatic-styles>
<o:master-styles>
<style:master-page style:name="Standard"
style:page-layout-name="cols" />
</o:master-styles>
</o:document-styles>
<o:text>
<text:p>Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed
diam nonumy eirmod tempor invidunt ut labore et dolore magna
aliquyam erat, sed diam voluptua. At vero eos et accusam et justo
duo dolores et ea rebum. Stet clita kasd gubergren, no sea takimata
sanctus est Lorem ipsum dolor sit amet. Lorem ipsum dolor sit amet,
consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt
ut labore et dolore magna aliquyam erat, sed diam voluptua. At vero
eos et accusam et justo duo dolores et ea rebum.
</text:p>
</o:text>
</input>
<pdf>
<mask name="columns">
<rect style="opacity:1;fill:white;fill-opacity:1;stroke-opacity:0"
height="162mm" width="27mm" x="19mm" xmlns="http://www.w3.org/2000/svg"
y="19mm" />
<rect style="opacity:1;fill:white;fill-opacity:1;stroke-opacity:0"
height="162mm" width="27mm" x="54mm" xmlns="http://www.w3.org/2000/svg"
y="19mm" />
</mask>
</pdf>
</test>
</documenttests>