From: Norman Walsh Date: Sat, 23 Oct 2004 12:20:46 +0000 (+0000) Subject: Updated tests X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=caf16a00bc18465624f62c9e4446ddd9b1eded82;p=docbook-dsssl Updated tests --- diff --git a/testdocs/tests/article.006.xml b/testdocs/tests/article.006.xml index 8fec6ca83..a860ccb7d 100644 --- a/testdocs/tests/article.006.xml +++ b/testdocs/tests/article.006.xml @@ -1,6 +1,4 @@ -
Unit Test: article.006.xml diff --git a/testdocs/tests/bibliography.004.xml b/testdocs/tests/bibliography.004.xml new file mode 100644 index 000000000..1cf50e310 --- /dev/null +++ b/testdocs/tests/bibliography.004.xml @@ -0,0 +1,51 @@ + + + + +Unit Test: bibliography.004 +$Id$ + + + Normative References + + + XML 1.0 + + Tim + Bray + + Extensible Markup Language (XML) 1.0 + 2nd ed + W3C Recommendation + 6 October 2000 + + 2000 + World Wide Web Consortium + + + + + + + + +Articles + + + Fl01 + + Peter + Flynn + + The XML FAQ + 2.1 + 1 January 2002 + + + + + + + + diff --git a/testdocs/tests/bibliography.005.xml b/testdocs/tests/bibliography.005.xml new file mode 100644 index 000000000..cc8459ecf --- /dev/null +++ b/testdocs/tests/bibliography.005.xml @@ -0,0 +1,89 @@ + + + + +$Id$ + +Unit Test: bibliography.005 + +This test case is for a bibliography in a section. + +
+A Section Title + +Some content here. + + + Bibliography in a Section + + XML 1.0 + + Tim + Bray + + Extensible Markup Language (XML) 1.0 + 2nd ed + W3C Recommendation + 6 October 2000 + + 2000 + World Wide Web Consortium + + + + + + +
+ +
+Another Section Title + +Some content + +
+A Subsection Title + +Some content + + + Bibliography in a Subsection + + XML 1.1 + + Tim + Bray + + Extensible Markup Language (XML) 1.1 + W3C Recommendation + 04 February 2004 + + 2004 + World Wide Web Consortium + + + + + + +
+
+ + + Bibliography in a Chapter + + Fl01 + + Peter + Flynn + + The XML FAQ + 2.1 + 1 January 2002 + + + + + +
diff --git a/testdocs/tests/bibliolist.001.xml b/testdocs/tests/bibliolist.001.xml new file mode 100644 index 000000000..87e2b1d8b --- /dev/null +++ b/testdocs/tests/bibliolist.001.xml @@ -0,0 +1,60 @@ + +
+ +Unit Test: bibliolist.001 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +This is a article. + + +Bibliography List + +This is a bibliography list. + + + AhoSethiUllman96 + + Alfred V.Aho + RaviSethi + Jeffrey D.Ullman + + Compilers, Principles, Techniques, and Tools + + Addison-Wesley Publishing Company + + 1996 + Bell Telephone Laboratories, Inc. + 0-201-10088-6 + James T.DeWolf + + + + Walsh97 + + A Guide to XML + WalshNorman + 1997 + 1997ArborText, Inc. + 97-108 + + + XML: Principles, Tools, and Techniques + + O'Reilly & Associates, Inc. + + 1085-2301 + DanConnolly + + + + +This is another paragraph. + +
+ + diff --git a/testdocs/tests/blockinfo.002.xml b/testdocs/tests/blockinfo.002.xml new file mode 100644 index 000000000..b74eadf94 --- /dev/null +++ b/testdocs/tests/blockinfo.002.xml @@ -0,0 +1,49 @@ + + +
+ +Unit Test: blockinfo.001 +$Id$ +AdamDi Carlo +
adam@onshored.com
+
+
+ + + + QandASet BlockInfo Title + This is a qandaset legal notice + + + + This is a qandaentry legal notice + + Question one. + + Answer one. +See + + + + + Question two. + + Answer two. + + + + + Question two. + + + testing a list + testing a list + testing a list + + + + + + +
diff --git a/testdocs/tests/co.001.xml b/testdocs/tests/co.001.xml new file mode 100644 index 000000000..a0ee1100e --- /dev/null +++ b/testdocs/tests/co.001.xml @@ -0,0 +1,31 @@ + + +
+ +Unit Test: co.001 +$Id$ +JohnHimpel +
jwhimpel@users.sourceforge.net
+
+
+ +Callouts inside userinput elements. + + +$cp a b +$mv a b + + + +This is a copy. + + +This is a move. + + + +
+ diff --git a/testdocs/tests/docbook-43.001.xml b/testdocs/tests/docbook-43.001.xml new file mode 100644 index 000000000..4ba6407b4 --- /dev/null +++ b/testdocs/tests/docbook-43.001.xml @@ -0,0 +1,114 @@ + + +
+ +Unit Test: docbook-43.001.xml +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + +Glossary List Title + +Some Term + +Some definition. + + + + +
+ +Block Quote Title + +A. Nonymous +Some memorable quotation. +
+ +The assignment statement x=1 is code. + + + + + + + + + +
HTML Table caption
HTMLTable
+ +#!/usr/bin/perl -- # --*-Perl-*-- + +use Getopt::Std; + +$usage = "Usage: $0 [-q] [-u|-p|-m] file [ file ... ]\n"; + +die $usage if ! getopts('qupm'); + +die $usage if ($opt_p + $opt_u + $opt_m) != 1; + +$file = shift @ARGV || die $usage; + +$opt = '-u' if $opt_u; +$opt = '-p' if $opt_p; +$opt = '-m' if $opt_m; + + + +A Task + +This task doesn’t accomplish anything. + + +Do something else first. + + +Do This +Do That +Do one of these things: + +Do A +Do B +Do C + + +Do the other thing + + +See some more interesting task after you’ve done this one. + + + +An Organization Name can now occur inline. + +The URI http://norman.walsh.name should really be a ulink. + +while ($file) { + print "Converting $file to $opt linebreaks.\n" if !$opt_q; + open (F, "$file"); + binmode F; + read (F, $_, -s $file); + close (F); + + s/\r\n/\n/sg; + s/\r/\n/sg; + + if ($opt eq '-p') { + s/\n/\r\n/sg; + } elsif ($opt eq '-m') { + s/\n/\r/sg; + } + + open (F, ">$file"); + binmode F; + print F $_; + close (F); + + $file = shift @ARGV; +} + + +
diff --git a/testdocs/tests/footnote.002.xml b/testdocs/tests/footnote.002.xml index 89b897371..17cc2be84 100644 --- a/testdocs/tests/footnote.002.xml +++ b/testdocs/tests/footnote.002.xml @@ -36,7 +36,14 @@ East Yahoo, XX -This paragraph contains a footnote -This is a footnote.. +This is a longer paragraph. It will eventually contain a footnote, but first +it has enough text to make the footnote appear in the middle of the paragraph. +This is so we can test the effect of changing the +line-height-shift-adjustment property. This paragraph +contains a footnote +This is a footnote. (see, I said it would). +Now it has more text to make the footnote appear in the middle of the paragraph. +Now it has more text to make the footnote appear in the middle of the paragraph. +
diff --git a/testdocs/tests/indexterm.002.xml b/testdocs/tests/indexterm.002.xml index 4f1a24dee..e341cc3c9 100644 --- a/testdocs/tests/indexterm.002.xml +++ b/testdocs/tests/indexterm.002.xml @@ -696,9 +696,7 @@ gq - -spanning - + diff --git a/testdocs/tests/orderedlist.003.xml b/testdocs/tests/orderedlist.003.xml new file mode 100644 index 000000000..747af89d6 --- /dev/null +++ b/testdocs/tests/orderedlist.003.xml @@ -0,0 +1,33 @@ + + +
+ +Unit Test: orderedlist.003 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Test list continuation. And cross-references; +item “2”: and item “4”: . + + +First item +Second item +Third item + + +And then a break occurs...a break in my sanity, apparently, +because changing the numeration style across a “continues” break seems +really stupid. But this a unit test, after all. Stupid is +allowed. + + +Fourth item +Fifth item +Sixth item + + +
diff --git a/testdocs/tests/procedure.002.xml b/testdocs/tests/procedure.002.xml index 21be40fa8..b2d3f3726 100644 --- a/testdocs/tests/procedure.002.xml +++ b/testdocs/tests/procedure.002.xml @@ -1,6 +1,6 @@ - +
Unit Test: procedure.002 @@ -22,19 +22,19 @@ Setup Select SETUP. -Should be an “a” +Should be an “a” -Should be a “b” +Should be a “b” -Should be a “c” +Should be a “c” -Should be a “d” +Should be a “d” -should be an “e” +should be an “e” -should be an “i” +should be an “i” -should be an “ii” +should be an “ii” diff --git a/testdocs/tests/profile.001.xml b/testdocs/tests/profile.001.xml new file mode 100644 index 000000000..255ec5bf0 --- /dev/null +++ b/testdocs/tests/profile.001.xml @@ -0,0 +1,24 @@ + + +
+ +Unit Test: profile.001 +$Id$ +JohnHimpel +
jwhimpel@users.sourceforge.net
+
+
+ +Profile and linkends attribute. + + +xxxxxxx + + + + +xxxx + + +
diff --git a/testdocs/tests/qandaset.004.xml b/testdocs/tests/qandaset.004.xml new file mode 100644 index 000000000..b926d4b0a --- /dev/null +++ b/testdocs/tests/qandaset.004.xml @@ -0,0 +1,27 @@ + + +
+ +Unit Test: qandaset.004 +$Id$ +StephaneBortzmeyer + + + + +Exercices + +First test + + +Do something. + +It is possibleMay be. +to solve the problem? + + + + + +
diff --git a/testdocs/tests/revhistory.001.xml b/testdocs/tests/revhistory.001.xml index 90e65c76a..5307b2ff3 100644 --- a/testdocs/tests/revhistory.001.xml +++ b/testdocs/tests/revhistory.001.xml @@ -17,19 +17,19 @@ 0.9 -20 Nov 1998 +Nov 20, 1998 ndw Some remark about the revision 0.8 -19 Nov 1998 +19 November 1998 ndw Some remark about the revision 0.7 -18 Nov 1998 +November 18, 1998 ndw Some remark about the revision diff --git a/testdocs/tests/segmentedlist.003.xml b/testdocs/tests/segmentedlist.003.xml new file mode 100644 index 000000000..9726e2b7c --- /dev/null +++ b/testdocs/tests/segmentedlist.003.xml @@ -0,0 +1,23 @@ + + +
+ +Unit Test: segmentedlist.003 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +Segmented list with embedded PI: + + +Label 1 +Label 2 +Content 1 +Content 2 + + + +
diff --git a/testdocs/tests/simplesect.001.xml b/testdocs/tests/simplesect.001.xml new file mode 100644 index 000000000..3c1b2abf0 --- /dev/null +++ b/testdocs/tests/simplesect.001.xml @@ -0,0 +1,40 @@ + + + + +$Id$ + +Unit Test: bibliography.005 + +This test case is for simplesect. + +
+A Section Title + +Some content here. + + +First Simplesect +Some content + +
+ +
+Another Section Title + +Some content + +
+A Subsection Title + +Some content + + +Second Simplesect +Some content + +
+
+ +
diff --git a/testdocs/tests/stepalternatives.001.xml b/testdocs/tests/stepalternatives.001.xml new file mode 100644 index 000000000..1631ce819 --- /dev/null +++ b/testdocs/tests/stepalternatives.001.xml @@ -0,0 +1,46 @@ + + +
+ +Unit Test: procedure.003 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + +Do the following: + + Step one + + + Branch 1 + + + a. + + + b. + + + + + Branch 2 + + + a. + + + b. + + + + + + + Step two + + +
diff --git a/testdocs/tests/superscript.001.xml b/testdocs/tests/superscript.001.xml new file mode 100644 index 000000000..25d3a825c --- /dev/null +++ b/testdocs/tests/superscript.001.xml @@ -0,0 +1,17 @@ + + +
+ +Unit Test: superscript.001.xml +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ +This article tests superscripts and subscripts, such as +“H2O” and +“a2 + b2 = c2”. + +
diff --git a/testdocs/tests/table.015.xml b/testdocs/tests/table.015.xml new file mode 100644 index 000000000..24db0319a --- /dev/null +++ b/testdocs/tests/table.015.xml @@ -0,0 +1,127 @@ + + +
+ +Unit Test: table.015 +$Id$ +NormanWalsh +
ndw@nwalsh.com
+
+
+ + +Multi-page Table with THead and TFoot + + + +Head Left +Head Right + + + + +Foot Left +Foot Right + + + +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right +Body LeftBody Right + + +
+ +
diff --git a/testdocs/tests/variablelist.001.xml b/testdocs/tests/variablelist.001.xml index 20b37835b..9252bd47a 100644 --- a/testdocs/tests/variablelist.001.xml +++ b/testdocs/tests/variablelist.001.xml @@ -1,6 +1,6 @@ - +
Unit Test: variablelist.001 @@ -61,4 +61,23 @@ + + +errnum : + +the system error number. See the standard C errno documentation. + + + + +Returns : + +a string describing the error code. If the error code is +unknown, it returns "unknown error (<code>)". +The string can only be used until the next call to g_strerror(). + + + + +