blob: e19d2b1fa98c7d11879a2a6ca7e2a0251965ddfd [file] [log] [blame]
dacarver58ad0f82008-10-01 03:29:54 +00001<?xml version='1.0'?>
2<testcases css="tables.css">
3
Florian Thienel64aa79f2013-01-19 14:18:50 +01004 <test id="Table 1R 1C (empty)" layoutWidth="100">
5 <doc><![CDATA[ <root><table><tr><td></td></tr></table></root> ]]></doc>
6 <result>
7 <box class="RootBox">
8 <box class="BlockElementBox">
9 <box class="BlockElementBox" element="root">
10 <box class="TableBox" element="table">
11 <box class="TableBodyBox">
12 <box class="TableRowGroupBox">
13 <box class="TableRowBox" element="tr">
14 <box class="TableCellBox" element="td">
15 <box class="ParagraphBox">
16 <box class="LineBox">
17 <box class="PlaceholderBox" />
18 </box>
19 </box>
20 </box>
21 </box>
22 </box>
23 </box>
24 </box>
25 </box>
26 </box>
27 </box>
28 </result>
29 </test>
dacarver58ad0f82008-10-01 03:29:54 +000030
Florian Thienel64aa79f2013-01-19 14:18:50 +010031 <test id="Table 1R 1C" layoutWidth="100">
32 <doc><![CDATA[ <root><table><tr><td>foo</td></tr></table></root> ]]></doc>
33 <result>
34 <box class="RootBox">
35 <box class="BlockElementBox">
36 <box class="BlockElementBox" element="root">
37 <box class="TableBox" element="table">
38 <box class="TableBodyBox">
39 <box class="TableRowGroupBox">
40 <box class="TableRowBox" element="tr">
41 <box class="TableCellBox" element="td">
42 <box class="ParagraphBox">
43 <box class="LineBox">
44 <box class="DocumentTextBox" text="foo" />
45 <box class="PlaceholderBox" />
46 </box>
47 </box>
48 </box>
49 </box>
50 </box>
51 </box>
52 </box>
53 </box>
54 </box>
55 </box>
56 </result>
57 </test>
dacarver58ad0f82008-10-01 03:29:54 +000058
Florian Thienel64aa79f2013-01-19 14:18:50 +010059 <test id="Table 1R 2C" layoutWidth="100">
60 <doc><![CDATA[ <root><table><tr><td>foo</td><td>bar</td></tr></table></root> ]]></doc>
61 <result>
62 <box class="RootBox">
63 <box class="BlockElementBox">
64 <box class="BlockElementBox" element="root">
65 <box class="TableBox" element="table">
66 <box class="TableBodyBox">
67 <box class="TableRowGroupBox">
dacarver58ad0f82008-10-01 03:29:54 +000068
Florian Thienel64aa79f2013-01-19 14:18:50 +010069 <box class="TableRowBox" element="tr">
dacarver58ad0f82008-10-01 03:29:54 +000070
Florian Thienel64aa79f2013-01-19 14:18:50 +010071 <box class="TableCellBox" element="td">
72 <box class="ParagraphBox">
73 <box class="LineBox">
74 <box class="DocumentTextBox" text="foo" />
75 <box class="PlaceholderBox" />
76 </box>
77 </box>
78 </box>
dacarver58ad0f82008-10-01 03:29:54 +000079
Florian Thienel64aa79f2013-01-19 14:18:50 +010080 <box class="TableCellBox" element="td">
81 <box class="ParagraphBox">
82 <box class="LineBox">
83 <box class="DocumentTextBox" text="bar" />
84 <box class="PlaceholderBox" />
85 </box>
86 </box>
87 </box>
dacarver58ad0f82008-10-01 03:29:54 +000088
Florian Thienel64aa79f2013-01-19 14:18:50 +010089 </box>
dacarver58ad0f82008-10-01 03:29:54 +000090
Florian Thienel64aa79f2013-01-19 14:18:50 +010091 </box>
92 </box>
93 </box>
94 </box>
95 </box>
96 </box>
97 </result>
98 </test>
dacarver58ad0f82008-10-01 03:29:54 +000099
Florian Thienel64aa79f2013-01-19 14:18:50 +0100100 <test id="Table 1R 1 Anonymous Cell" layoutWidth="100">
101 <doc><![CDATA[ <root><table><tr>foo</tr></table></root> ]]></doc>
102 <result>
103 <box class="RootBox">
104 <box class="BlockElementBox">
105 <box class="BlockElementBox" element="root">
106 <box class="TableBox" element="table">
107 <box class="TableBodyBox">
108 <box class="TableRowGroupBox">
dacarver58ad0f82008-10-01 03:29:54 +0000109
Florian Thienel64aa79f2013-01-19 14:18:50 +0100110 <box class="TableRowBox" element="tr">
111 <box class="TableCellBox">
112 <box class="ParagraphBox">
113 <box class="LineBox">
114 <box class="DocumentTextBox" text="foo" />
115 <box class="PlaceholderBox" />
116 </box>
117 </box>
118 </box>
119 </box>
dacarver58ad0f82008-10-01 03:29:54 +0000120
Florian Thienel64aa79f2013-01-19 14:18:50 +0100121 </box>
122 </box>
123 </box>
124 </box>
125 </box>
126 </box>
127 </result>
128 </test>
129
130 <test id="Anonymous Cells 2" layoutWidth="100">
131 <doc><![CDATA[ <root><table><tr>foo <b>bar</b></tr></table></root> ]]></doc>
132 <result>
133 <box class="RootBox">
134 <box class="BlockElementBox">
135 <box class="BlockElementBox" element="root">
136 <box class="TableBox" element="table">
137 <box class="TableBodyBox">
138 <box class="TableRowGroupBox">
139
140 <box class="TableRowBox" element="tr">
141 <box class="TableCellBox">
142 <box class="ParagraphBox">
143 <box class="LineBox">
144 <box class="DocumentTextBox" text="foo " />
145 <box class="PlaceholderBox" />
146 <box class="InlineElementBox" element="b">
147 <box class="DrawableBox" />
148 <box class="DocumentTextBox" text="bar" />
149 <box class="PlaceholderBox" />
150 <box class="DrawableBox" />
151 </box>
152 <box class="PlaceholderBox" />
153 </box>
154 </box>
155 </box>
156 </box>
157
158 </box>
159 </box>
160 </box>
161 </box>
162 </box>
163 </box>
164 </result>
165 </test>
166
167 <test id="Anonymous Cells 3" layoutWidth="100">
168 <doc><![CDATA[ <root><table><tr>foo <p>bar</p></tr></table></root> ]]></doc>
169 <result>
170 <box class="RootBox">
171 <box class="BlockElementBox">
172 <box class="BlockElementBox" element="root">
173 <box class="TableBox" element="table">
174 <box class="TableBodyBox">
175 <box class="TableRowGroupBox">
dacarver58ad0f82008-10-01 03:29:54 +0000176
177
Florian Thienel64aa79f2013-01-19 14:18:50 +0100178 <box class="TableRowBox" element="tr">
179 <box class="TableCellBox">
dacarver58ad0f82008-10-01 03:29:54 +0000180
Florian Thienel64aa79f2013-01-19 14:18:50 +0100181 <box class="ParagraphBox">
182 <box class="LineBox">
183 <box class="DocumentTextBox" text="foo" />
184 <box class="PlaceholderBox" />
185 </box>
186 </box>
dacarver58ad0f82008-10-01 03:29:54 +0000187
Florian Thienel64aa79f2013-01-19 14:18:50 +0100188 <box class="BlockElementBox" element="p">
189 <box class="ParagraphBox">
190 <box class="LineBox">
191 <box class="DocumentTextBox" text="bar" />
192 <box class="PlaceholderBox" />
193 </box>
194 </box>
195 </box>
dacarver58ad0f82008-10-01 03:29:54 +0000196
Florian Thienel64aa79f2013-01-19 14:18:50 +0100197 </box>
198 </box>
dacarver58ad0f82008-10-01 03:29:54 +0000199
Florian Thienel64aa79f2013-01-19 14:18:50 +0100200 </box>
201 </box>
202 </box>
203 </box>
204 </box>
205 </box>
206 </result>
207 </test>
dacarver58ad0f82008-10-01 03:29:54 +0000208
Florian Thienel64aa79f2013-01-19 14:18:50 +0100209 <test id="Anonymous Cells 4" layoutWidth="100">
210 <doc><![CDATA[ <root><table><tr>foo <td>bar</td></tr></table></root> ]]></doc>
211 <result>
212 <box class="RootBox">
213 <box class="BlockElementBox">
214 <box class="BlockElementBox" element="root">
215 <box class="TableBox" element="table">
216 <box class="TableBodyBox">
217 <box class="TableRowGroupBox">
dacarver58ad0f82008-10-01 03:29:54 +0000218
Florian Thienel64aa79f2013-01-19 14:18:50 +0100219 <box class="TableRowBox" element="tr">
220
221 <box class="TableCellBox">
222 <box class="ParagraphBox">
223 <box class="LineBox">
224 <box class="DocumentTextBox" text="foo" />
225 <box class="PlaceholderBox" />
226 </box>
227 </box>
228 </box>
229
230 <box class="TableCellBox" element="td">
231 <box class="ParagraphBox">
232 <box class="LineBox">
233 <box class="DocumentTextBox" text="bar" />
234 <box class="PlaceholderBox" />
235 </box>
236 </box>
237 </box>
238
239 </box>
240
241 </box>
242 </box>
243 </box>
244 </box>
245 </box>
246 </box>
247 </result>
248 </test>
dacarver58ad0f82008-10-01 03:29:54 +0000249
250
Florian Thienel64aa79f2013-01-19 14:18:50 +0100251 <test id="Anonymous Cells 5" layoutWidth="100">
252 <doc><![CDATA[ <root><table><tr><td>bar</td> foo</tr></table></root> ]]></doc>
253 <result>
254 <box class="RootBox">
255 <box class="BlockElementBox">
256 <box class="BlockElementBox" element="root">
257 <box class="TableBox" element="table">
258 <box class="TableBodyBox">
259 <box class="TableRowGroupBox">
dacarver58ad0f82008-10-01 03:29:54 +0000260
Florian Thienel64aa79f2013-01-19 14:18:50 +0100261 <box class="TableRowBox" element="tr">
dacarver58ad0f82008-10-01 03:29:54 +0000262
Florian Thienel64aa79f2013-01-19 14:18:50 +0100263 <box class="TableCellBox" element="td">
264 <box class="ParagraphBox">
265 <box class="LineBox">
266 <box class="DocumentTextBox" text="bar" />
267 <box class="PlaceholderBox" />
268 </box>
269 </box>
270 </box>
271
272 <box class="TableCellBox">
273 <box class="ParagraphBox">
274 <box class="LineBox">
275 <box class="DocumentTextBox" text="foo" />
276 <box class="PlaceholderBox" />
277 </box>
278 </box>
279 </box>
280
281 </box>
282
283 </box>
284 </box>
285 </box>
286 </box>
287 </box>
288 </box>
289 </result>
290 </test>
dacarver58ad0f82008-10-01 03:29:54 +0000291
292
Florian Thienel64aa79f2013-01-19 14:18:50 +0100293 <test id="Empty Table" layoutWidth="100">
294 <doc><![CDATA[ <root><table/></root> ]]></doc>
295 <result>
296 <box class="RootBox">
297 <box class="BlockElementBox">
298 <box class="BlockElementBox" element="root">
299 <box class="TableBox">
300 </box>
301 </box>
302 </box>
303 </box>
304 </result>
305 </test>
dacarver58ad0f82008-10-01 03:29:54 +0000306
dacarver58ad0f82008-10-01 03:29:54 +0000307
Florian Thienel64aa79f2013-01-19 14:18:50 +0100308<!--
309 <test id="Anonymous Table and Row - Empty" layoutWidth="100">
310 <doc><![CDATA[ <root><td></td></root> ]]></doc>
311 <result>
312 <box class="RootBox">
313 <box class="BlockElementBox">
314 <box class="BlockElementBox" element="root">
315 <box class="TableBox">
316 <box class="TableBodyBox">
317 <box class="TableRowGroupBox">
318
319 <box class="TableRowBox">
320
321 <box class="TableCellBox" element="td">
322 <box class="ParagraphBox">
323 <box class="LineBox">
324 <box class="PlaceholderBox" />
325 </box>
326 </box>
327 </box>
328
329 </box>
330
331 </box>
332 </box>
333 </box>
334 </box>
335 </box>
336 </box>
337 </result>
338 </test>
339
340 <test id="Anonymous Table and Row" layoutWidth="100">
341 <doc><![CDATA[ <root><td>bar</td></root> ]]></doc>
342 <result>
343 <box class="RootBox">
344 <box class="BlockElementBox">
345 <box class="BlockElementBox" element="root">
346 <box class="TableBox">
347 <box class="TableBodyBox">
348 <box class="TableRowGroupBox">
349
350 <box class="TableRowBox">
351
352 <box class="TableCellBox" element="td">
353 <box class="ParagraphBox">
354 <box class="LineBox">
355 <box class="DocumentTextBox" text="bar" />
356 <box class="PlaceholderBox" />
357 </box>
358 </box>
359 </box>
360
361 </box>
362
363 </box>
364 </box>
365 </box>
366 </box>
367 </box>
368 </box>
369 </result>
370 </test>
371
372 <test id="Anonymous Table and Cell" layoutWidth="100">
373 <doc><![CDATA[ <root><tr>bar</tr></root> ]]></doc>
374 <result>
375 <box class="RootBox">
376 <box class="BlockElementBox">
377 <box class="BlockElementBox" element="root">
378 <box class="TableBox">
379 <box class="TableBodyBox">
380 <box class="TableRowGroupBox">
381
382 <box class="TableRowBox" element="tr">
383
384 <box class="TableCellBox">
385 <box class="ParagraphBox">
386 <box class="LineBox">
387 <box class="DocumentTextBox" text="bar" />
388 <box class="PlaceholderBox" />
389 </box>
390 </box>
391 </box>
392
393 </box>
394
395 </box>
396 </box>
397 </box>
398 </box>
399 </box>
400 </box>
401 </result>
402 </test>
403
404
405 <test id="Anonymous Row and Cell" layoutWidth="100">
406 <doc><![CDATA[ <root><table>bar</table></root> ]]></doc>
407 <result>
408 <box class="RootBox">
409 <box class="BlockElementBox">
410 <box class="BlockElementBox" element="root">
411 <box class="TableBox" element="table">
412 <box class="TableBodyBox">
413 <box class="TableRowGroupBox">
414
415 <box class="TableRowBox">
416
417 <box class="TableCellBox">
418 <box class="ParagraphBox">
419 <box class="LineBox">
420 <box class="DocumentTextBox" text="bar" />
421 <box class="PlaceholderBox" />
422 </box>
423 </box>
424 </box>
425
426 </box>
427
428 </box>
429 </box>
430 </box>
431 </box>
432 </box>
433 </box>
434 </result>
435 </test>
436
437 -->
438 <test id="Empty table-row-group" layoutWidth="100">
439 <doc><![CDATA[ <root><table><tbody/></table></root> ]]></doc>
440 <result>
441 <box class="RootBox">
442 <box class="BlockElementBox">
443 <box class="BlockElementBox" element="root">
444 <box class="TableBox" element="table">
445 <box class="TableBodyBox">
446 <box class="TableRowGroupBox" element="tbody">
447
448 </box>
449 </box>
450 </box>
451 </box>
452 </box>
453 </box>
454 </result>
455 </test>
456
457
458
459 <test id="table-row-group With Content" layoutWidth="100">
460 <doc><![CDATA[ <root><table><tbody>bar</tbody></table></root> ]]></doc>
461 <result>
462 <box class="RootBox">
463 <box class="BlockElementBox">
464 <box class="BlockElementBox" element="root">
465 <box class="TableBox" element="table">
466 <box class="TableBodyBox">
467 <box class="TableRowGroupBox" element="tbody">
468
469 <box class="TableRowBox">
470
471 <box class="TableCellBox">
472 <box class="ParagraphBox">
473 <box class="LineBox">
474 <box class="DocumentTextBox" text="bar" />
475 <box class="PlaceholderBox" />
476 </box>
477 </box>
478 </box>
479
480 </box>
481
482 </box>
483 </box>
484 </box>
485 </box>
486 </box>
487 </box>
488 </result>
489 </test>
490
491
492 <test id="Empty table-header-group" layoutWidth="100">
493 <doc><![CDATA[ <root><table><thead/></table></root> ]]></doc>
494 <result>
495 <box class="RootBox">
496 <box class="BlockElementBox">
497 <box class="BlockElementBox" element="root">
498 <box class="TableBox" element="table">
499 <box class="TableBodyBox">
500 <box class="TableRowGroupBox" element="thead">
501
502 </box>
503 </box>
504 </box>
505 </box>
506 </box>
507 </box>
508 </result>
509 </test>
510
511
512
513 <test id="table-header-group With Content" layoutWidth="100">
514 <doc><![CDATA[ <root><table><thead>bar</thead></table></root> ]]></doc>
515 <result>
516 <box class="RootBox">
517 <box class="BlockElementBox">
518 <box class="BlockElementBox" element="root">
519 <box class="TableBox" element="table">
520 <box class="TableBodyBox">
521 <box class="TableRowGroupBox" element="thead">
522
523 <box class="TableRowBox">
524
525 <box class="TableCellBox">
526 <box class="ParagraphBox">
527 <box class="LineBox">
528 <box class="DocumentTextBox" text="bar" />
529 <box class="PlaceholderBox" />
530 </box>
531 </box>
532 </box>
533
534 </box>
535
536 </box>
537 </box>
538 </box>
539 </box>
540 </box>
541 </box>
542 </result>
543 </test>
544
545
546 <test id="Table inna Table" layoutWidth="100">
547 <doc><![CDATA[ <root><table><table/></table></root> ]]></doc>
548 <result>
549 <box class="RootBox">
550 <box class="BlockElementBox">
551 <box class="BlockElementBox" element="root">
552 <box class="TableBox" element="table">
553 <box class="TableBodyBox">
554 <box class="TableRowGroupBox">
555
556 <box class="TableRowBox">
557
558 <box class="TableCellBox">
559 <box class="TableBox">
560 </box>
561 </box>
562
563 </box>
564
565 </box>
566 </box>
567 </box>
568 </box>
569 </box>
570 </box>
571 </result>
572 </test>
573
574
dacarver58ad0f82008-10-01 03:29:54 +0000575</testcases>