From: Norman Walsh Date: Sun, 29 Dec 2002 14:28:11 +0000 (+0000) Subject: New and updated tests X-Git-Tag: release/1.79.1~6^2~5030 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd2b7466c7bcee517a0ff9493a2774597732d08d;p=docbook-dsssl New and updated tests --- diff --git a/testdocs/tests/article.001.xml b/testdocs/tests/article.001.xml index 305244e07..9438af3e2 100644 --- a/testdocs/tests/article.001.xml +++ b/testdocs/tests/article.001.xml @@ -1,6 +1,6 @@ - +
Unit Test: article.001.xml diff --git a/testdocs/tests/article.003.xml b/testdocs/tests/article.003.xml new file mode 100644 index 000000000..f4859371c --- /dev/null +++ b/testdocs/tests/article.003.xml @@ -0,0 +1,77 @@ + + +
+ +Unit Test: article.003.xml +$Id$ + +NormanWalsh +
ndw@nwalsh.com
+
+JaneDoe +
+ +This is the abstract. +It has several paras. +It has several paras. + +
+ +Some preambulatory paragraph. + +
+Section One + +Some other paragraph. + +
+Section One.Two + +Some other paragraph. + +
+ +
+Section One.Three + +Some other paragraph. + +
+
+ +
+Section Two + +Some other paragraph. + +
+ + +Appendix One + +Some other paragraph. + +
+Section One + +Some other paragraph. + +
+Section One.Two + +Some other paragraph. + +
+ +
+Section One.Three + +Some other paragraph. + +
+
+
+ +
+ diff --git a/testdocs/tests/article.004.xml b/testdocs/tests/article.004.xml new file mode 100644 index 000000000..838591a21 --- /dev/null +++ b/testdocs/tests/article.004.xml @@ -0,0 +1,26 @@ + + +
+ +Unit Test: article.004.xml +$Id$ + +NormanWalsh +
ndw@nwalsh.com
+
+JaneDoe +
+ +This is the abstract. +It has several paras. +It has several paras. + +2002No one in particular +
+ +This is an article tests. + +I'd like to thank all the tests that came before me. + +
diff --git a/testdocs/tests/author.001.xml b/testdocs/tests/author.001.xml new file mode 100644 index 000000000..4f1b94922 --- /dev/null +++ b/testdocs/tests/author.001.xml @@ -0,0 +1,40 @@ + + + + +Unit Test: author.001 +$Id$ + +SomeCorp + + Mr + FirstFirstlast + Middlename + Surname + Jr + + + Mr + FirstLastfirst + Middlename + Surname + Jr + + + Mr + FirstFamilygiven + Middlename + Surname + Jr + + + + + +Chapter Title + +Content statisfies a book. + + + diff --git a/testdocs/tests/author.002.xml b/testdocs/tests/author.002.xml new file mode 100644 index 000000000..5432c62f2 --- /dev/null +++ b/testdocs/tests/author.002.xml @@ -0,0 +1,48 @@ + + + + +Unit Test: author.002 +$Id$ + + + +Chapter Title + + + + + Mr + FirstFirstlast + Middlename + Surname + Jr + + + + + Mr + FirstLastfirst + Middlename + Surname + Jr + + + + + Mr + FirstFamilygiven + Middlename + Surname + Jr + + + + +See first author or +second member. + + + + diff --git a/testdocs/tests/book.003.xml b/testdocs/tests/book.003.xml index 0a6f418c0..ee4a394ab 100644 --- a/testdocs/tests/book.003.xml +++ b/testdocs/tests/book.003.xml @@ -100,6 +100,7 @@ Some abstract. Some abstract. Some abstract. Some abstract. First Chapter + &blah;
A Test Figure @@ -109,8 +110,18 @@ A figure. Just to test the numeration.
First Section +
Another Test Figure + +A figure. Just to test the numeration. +
+ &blah; +Test Example + +An example. + +
First Subsection &blah; diff --git a/testdocs/tests/book.004.xml b/testdocs/tests/book.004.xml new file mode 100644 index 000000000..d972f3045 --- /dev/null +++ b/testdocs/tests/book.004.xml @@ -0,0 +1,24 @@ + + + +Unit Test: book.003 + + + +bla in the first chapter + + +First <filename>Filename</filename> Chapter + +blah with filename. + + + + +My Product<emphasis><superscript>plus</superscript></emphasis> description + +blah. + + + diff --git a/testdocs/tests/changebars.001.xml b/testdocs/tests/changebars.001.xml new file mode 100644 index 000000000..1d17f8139 --- /dev/null +++ b/testdocs/tests/changebars.001.xml @@ -0,0 +1,23 @@ + + +
+ +Unit Test: changebars.001.xml +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +This article tests change bars. + +This paragraph was added. + +This paragraph was deleted. + +This paragraph contains changed, +and +added, and deleted inlines. + +
diff --git a/testdocs/tests/chapter.002.xml b/testdocs/tests/chapter.002.xml new file mode 100644 index 000000000..419ce0a51 --- /dev/null +++ b/testdocs/tests/chapter.002.xml @@ -0,0 +1,17 @@ + + + + +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+Unit Test: chapter.001.xml + +This is a chapter test. + +It's self-referential, too: . + +
diff --git a/testdocs/tests/figure.002.xml b/testdocs/tests/figure.002.xml new file mode 100644 index 000000000..f35416220 --- /dev/null +++ b/testdocs/tests/figure.002.xml @@ -0,0 +1,49 @@ + + +
+ +Unit Test: figure.001 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +This paragraph precedes the first figure. The following figure has +float="1". + +
+ The Duck + + + + + The DocBook: TDG Duck + +
+ +This paragraph is between the figures. The following figure has +float="right". + +
+ The Duck + + + + + The DocBook: TDG Duck + +
+ +This paragraph follows the figures. + +
diff --git a/testdocs/tests/funcsynopsis.001.xml b/testdocs/tests/funcsynopsis.001.xml new file mode 100644 index 000000000..b399ed30d --- /dev/null +++ b/testdocs/tests/funcsynopsis.001.xml @@ -0,0 +1,124 @@ + +
+ +Unit Test: funcsynopsis.001.xml +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +A funcsynopsis. + + + +#include <varargs.h> + + + float rand + + + + + int max + + + + + int idiv + int n + int m + + + +Another. + + + + void qsort + void *dataptr[] + int left + int right + int (*comp) + void *, void * + + + +Another. + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + + foo_sometype1 foo_frob_parm5 + + + +Another. + + + +#include <varargs.h> + + + float rand + + + + + int max + + + + + int idiv + int n + int m + + + +Another. + + + + void qsort + void *dataptr[] + int left + int right + int (*comp) + void *, void * + + + +Another. + + + + int foo_frob_something + foo_sometype1 foo_frob_parm1 + foo_sometype1 foo_frob_parm2 + foo_sometype1 foo_frob_parm3 + int (* parm4 ) + int a, int b, int c + foo_sometype1 foo_frob_parm5 + + + +
diff --git a/testdocs/tests/glossary.001.xml b/testdocs/tests/glossary.001.xml index e9762e48c..aa6158c9c 100644 --- a/testdocs/tests/glossary.001.xml +++ b/testdocs/tests/glossary.001.xml @@ -1,15 +1,27 @@ - - - - + + + Unit Test: glossary.001 $Id$ EricRaymond Jargon File 4.2.3 (abridged) Just some test data - + + + +A Chapter + +There's a firstterm here: +1TBS. + +And there's a couple of glossterms here: +1TBS, @-party. + + + + 0 @@ -272,3 +284,4 @@ that took on a life of their own. See {Eric Conspiracy} for one example. + \ No newline at end of file diff --git a/testdocs/tests/glossary.003.xml b/testdocs/tests/glossary.003.xml new file mode 100644 index 000000000..b2a966758 --- /dev/null +++ b/testdocs/tests/glossary.003.xml @@ -0,0 +1,23 @@ + + +
+ +Unit Test: glossary.003 +$Id$ + + +This is a test. + + +test1 +First definition + + +test2 +First definition +Second definition + + + +
diff --git a/testdocs/tests/indexterm.001.xml b/testdocs/tests/indexterm.001.xml index 1efa0f192..fd32edbc3 100644 --- a/testdocs/tests/indexterm.001.xml +++ b/testdocs/tests/indexterm.001.xml @@ -12,18 +12,26 @@ First Chapter +Appendix + This is a test paragraph. - + @foo > operator +< operator + + ap1 - + +ap1 + + ap1 @@ -61,14 +69,15 @@ dp2 +dp1, dp1ds1 -First Appendix +First Appendix This is just a test. - + ap1 @@ -105,6 +114,22 @@ +Another Appendix + +More testing. + + +ap1 + + +ap1 + + +ap2 + + + + diff --git a/testdocs/tests/indexterm.002.xml b/testdocs/tests/indexterm.002.xml index e12b43d74..4f1a24dee 100644 --- a/testdocs/tests/indexterm.002.xml +++ b/testdocs/tests/indexterm.002.xml @@ -19,6 +19,9 @@ ap2 + +spanning + bp1 @@ -693,6 +696,10 @@ gq + +spanning + + diff --git a/testdocs/tests/indexterm.003.xml b/testdocs/tests/indexterm.003.xml new file mode 100644 index 000000000..8c4497413 --- /dev/null +++ b/testdocs/tests/indexterm.003.xml @@ -0,0 +1,31 @@ + + + + +Unit Test: indexterm.003 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +First Chapter + +An indexterm starts +here. +Start + + + +Second Chapter + +The term ends +here. + + + + + + +
diff --git a/testdocs/tests/mediaobject.001.xml b/testdocs/tests/mediaobject.001.xml index 6ea3e76d5..de6bbc31e 100644 --- a/testdocs/tests/mediaobject.001.xml +++ b/testdocs/tests/mediaobject.001.xml @@ -2,7 +2,6 @@
- Unit Test: mediaobject.001 $Id$ diff --git a/testdocs/tests/mediaobject.002.xml b/testdocs/tests/mediaobject.002.xml new file mode 100644 index 000000000..78c725fef --- /dev/null +++ b/testdocs/tests/mediaobject.002.xml @@ -0,0 +1,46 @@ + + +
+ +Unit Test: mediaobject.002 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + + + + + The DocBook: TDG Duck + +The bird on the cover of DocBook: The Definitive +Guide is a wood duck. Often considered one of the most +beautiful ducks in North America, the mail wood duck has a metallic +purple and green head with white streaks extending from its bill +around the eyes and down to its blue and green, gold-flecked +wings. It has a white neck, chestnut-colored chest, a white or red +bill, and yellow-orange legs and feet. Females have more brown, gray, +and subdueed hues. + + +Edie Freedman designed the cover of this book, using a +19th-century engraving from the Dover Pictorial Archive. The +cover layout was produced by Kathleen Wilson using QuarkXPress +3.32 and Adobe's ITC Garamond font. The inside layout was +designed by Alicia Cech, based on a series design by Nancy +Priest. The text was formatted from SGML into FrameMaker 5.5 +with Jade, using a DSSSL conversion stylesheet written by +Chris Maden. The interior fonts are ITC Garamond Light, +Garamond Book, and ConstantWillison. + + + The Duck + + +
diff --git a/testdocs/tests/refentry.002.xml b/testdocs/tests/refentry.002.xml index b7360d487..8155a2157 100644 --- a/testdocs/tests/refentry.002.xml +++ b/testdocs/tests/refentry.002.xml @@ -1,6 +1,6 @@ - +
Unit Test: refentry.002 @@ -20,10 +20,31 @@ Another test of a minimal RefEntry - + Description This is a minimal RefEntry. - + + +Subsection +This is a minimal RefEntry. + + +Sub-subsection +This is a minimal RefEntry. + + + + + +More Description +This is a not-so minimal RefEntry. + + + +Even More Description +This is an even less minimal RefEntry. + +
diff --git a/testdocs/tests/refentry.005.xml b/testdocs/tests/refentry.005.xml new file mode 100644 index 000000000..c09458c81 --- /dev/null +++ b/testdocs/tests/refentry.005.xml @@ -0,0 +1,47 @@ + + + + +Unit Test: refentry.005 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + +Also Minimal Title +3 + + +Also Minimal +Another test of a minimal RefEntry + + + +Description +This is a minimal RefEntry. + + +Subsection +This is a minimal RefEntry. + + +Sub-subsection +This is a minimal RefEntry. + + + + + +More Description +This is a not-so minimal RefEntry. + + + +Even More Description +This is an even less minimal RefEntry. + + +
diff --git a/testdocs/tests/refentry.006.xml b/testdocs/tests/refentry.006.xml new file mode 100644 index 000000000..e3828bcd3 --- /dev/null +++ b/testdocs/tests/refentry.006.xml @@ -0,0 +1,47 @@ + + + + +Unit Test: refentry.006 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + +Also Minimal Title +3 + + +Also Minimal +Another test of a minimal RefEntry + + + +Description +This is a minimal RefEntry. + + +Subsection +This is a minimal RefEntry. + + +Sub-subsection +This is a minimal RefEntry. + + + + + +More Description +This is a not-so minimal RefEntry. + + + +Even More Description +This is an even less minimal RefEntry. + + +
diff --git a/testdocs/tests/revhistory.001.xml b/testdocs/tests/revhistory.001.xml index c50d72aab..90e65c76a 100644 --- a/testdocs/tests/revhistory.001.xml +++ b/testdocs/tests/revhistory.001.xml @@ -38,4 +38,49 @@ This article tests revhistory. It appears in the articleinfo. +This paragraph also contains the revhistory. + + +1.0 +13 Mar 2002 +ndw +Some remark. + + +0.9 +20 Nov 1998 +ndw +Some remark about the revision + + +0.8 +19 Nov 1998 +ndw +Some remark about the revision + + +0.7 +18 Nov 1998 +ndw +Some remark about the revision + + + + +And this paragraph contains a different one: + + + 1.1.1 + 12.6.2002 + ndw + + + Item 1 + Item 2 + + + + + +
diff --git a/testdocs/tests/simplelist.001.xml b/testdocs/tests/simplelist.001.xml new file mode 100644 index 000000000..057508d3e --- /dev/null +++ b/testdocs/tests/simplelist.001.xml @@ -0,0 +1,53 @@ + + +
+ +Unit Test: simplelist.001 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +An inline simple list: + +eggs +milk +butter +. + + +A horizontal simple list: + + +A +B +C +D +E +F +G +H +I +J +K + + +A vertical simple list: + + +A +B +C +D +E +F +G +H +I +J +K + + +
diff --git a/testdocs/tests/svg.001.xml b/testdocs/tests/svg.001.xml index 74c1966e3..45522513a 100644 --- a/testdocs/tests/svg.001.xml +++ b/testdocs/tests/svg.001.xml @@ -14,7 +14,8 @@ - + + +
+ +Unit Test: table.007 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Missing center cell... + + + + + + + +a foo +a bar +a baz + + +b foo +b baz + + +c foo +c foo +c baz + + + + + +
diff --git a/testdocs/tests/table.008.xml b/testdocs/tests/table.008.xml new file mode 100644 index 000000000..c3458a17c --- /dev/null +++ b/testdocs/tests/table.008.xml @@ -0,0 +1,61 @@ + + +
+ +Unit Test: table.008 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Table style test. + + + + + + + +a foo +a bar +a baz + + +b foo +b baz + + +c foo +c foo +c baz + + + + + + + + + + + +no style +a bar +a baz + + +b foo +b baz + + +c foo +c foo +c baz + + + + + +
diff --git a/testdocs/tests/table.009.xml b/testdocs/tests/table.009.xml new file mode 100644 index 000000000..f2d186033 --- /dev/null +++ b/testdocs/tests/table.009.xml @@ -0,0 +1,55 @@ + + +
+ +Unit Test: table.009 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Nested table test. + + + + + +a foo +a bar +a baz + + +b foo + + + + + a' foo + a' bar + a' baz + + + b' foo + b' bar + b' and c' baz + + + c' foo + c' bar + + + +b baz + + +c foo +c bar +c baz + + + + + +
diff --git a/testdocs/tests/table.010.xml b/testdocs/tests/table.010.xml new file mode 100644 index 000000000..f299202b0 --- /dev/null +++ b/testdocs/tests/table.010.xml @@ -0,0 +1,30 @@ + + +
+ +Unit Test: table.001 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + + + + + + + +Address: +Some literal layout +text goes here. + + + + + + +
diff --git a/testdocs/tests/textobject.001.xml b/testdocs/tests/textobject.001.xml new file mode 100644 index 000000000..fc4fc21b4 --- /dev/null +++ b/testdocs/tests/textobject.001.xml @@ -0,0 +1,19 @@ + + +
+ +Unit Test: textobject.001 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +The XML source for this document is: + + + + + +
diff --git a/testdocs/tests/xref.002.xml b/testdocs/tests/xref.002.xml new file mode 100644 index 000000000..d278b3c28 --- /dev/null +++ b/testdocs/tests/xref.002.xml @@ -0,0 +1,40 @@ + + +
+ +Unit Test: xref.002.xml +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+Xref Endterm +
+ +This is an xref test. + +Cross reference to section one: . + +Cross reference to section two: . + +Cross reference to section one with endterm: +. + +Cross reference to section two with endterm: +. + +
+Section One Title + +This text is irrelevant. + +
+ +
+Section Two Title + +This text is irrelevant. + +
+ +