From: Arjen Baart Date: Sun, 18 Aug 2019 16:38:45 +0000 (+0200) Subject: Added test case for lists. X-Git-Url: http://www.andromeda.nl/gitweb/?p=xmldoc.git;a=commitdiff_plain;h=a6e9ef7450dd839043a3f613d7c1e051ceae7ede Added test case for lists. --- diff --git a/ChangeLog b/ChangeLog index e3edb44..442f046 100644 --- a/ChangeLog +++ b/ChangeLog @@ -2,6 +2,7 @@ Version 0.9 - Aug 17, 2019 =========================================================== o Fixed LaTeX special characters +o Added test for lists Version 0.8 - Jul 26, 2019 =========================================================== diff --git a/doc/Makefile.am b/doc/Makefile.am index 13a3ca1..fa38dee 100644 --- a/doc/Makefile.am +++ b/doc/Makefile.am @@ -37,7 +37,7 @@ guide.pdf : $(XMLS) $(PICTURES) ../latex.xsl ../xp guide.txt : $(XMLS) ../text.xsl ../xp ../text.xsl guide.xml > guide.txt -check: +validate: xmllint --noout --xinclude --loaddtd --noent --schema ../doc.xsd guide.xml # xmllint --noout --valid $(XMLS) diff --git a/doc/Makefile.in b/doc/Makefile.in index 59ca836..14e30ef 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -427,7 +427,7 @@ guide.pdf : $(XMLS) $(PICTURES) ../latex.xsl ../xp guide.txt : $(XMLS) ../text.xsl ../xp ../text.xsl guide.xml > guide.txt -check: +validate: xmllint --noout --xinclude --loaddtd --noent --schema ../doc.xsd guide.xml # xmllint --noout --valid $(XMLS) diff --git a/test/Makefile.am b/test/Makefile.am index d571475..c3de07b 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -1,4 +1,4 @@ -TESTS = basic title titlepage sections toc paragraph specialchars +TESTS = basic title titlepage sections toc paragraph lists specialchars clean-local: rm -f *.html *.tex *.aux *.dvi *.pdf diff --git a/test/Makefile.in b/test/Makefile.in index dbb83c1..3949a09 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -408,7 +408,7 @@ target_alias = @target_alias@ top_build_prefix = @top_build_prefix@ top_builddir = @top_builddir@ top_srcdir = @top_srcdir@ -TESTS = basic title titlepage sections toc paragraph specialchars +TESTS = basic title titlepage sections toc paragraph lists specialchars all: all-am .SUFFIXES: @@ -632,6 +632,13 @@ paragraph.log: paragraph --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$tst" $(AM_TESTS_FD_REDIRECT) +lists.log: lists + @p='lists'; \ + b='lists'; \ + $(am__check_pre) $(LOG_DRIVER) --test-name "$$f" \ + --log-file $$b.log --trs-file $$b.trs \ + $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ + "$$tst" $(AM_TESTS_FD_REDIRECT) specialchars.log: specialchars @p='specialchars'; \ b='specialchars'; \ diff --git a/test/lists b/test/lists new file mode 100755 index 0000000..d65259d --- /dev/null +++ b/test/lists @@ -0,0 +1,5 @@ +#!/bin/bash + +./check lists + +exit $? diff --git a/test/lists.html.exp b/test/lists.html.exp new file mode 100644 index 0000000..03fb918 --- /dev/null +++ b/test/lists.html.exp @@ -0,0 +1,148 @@ + + + + + + + xmldoc lists check + + + + +
+

xmldoc lists check

+
+ +

1 Check 3 kinds of lists

    +
  1. + The enumerate element +
  2. +
  3. + creates numbered lists +
      +
    1. + and can also be nested +
    2. +
    +
  4. +
+
first item
+ The description element +
+
second item
+ creates lists with description tags +
+
nested item
+ and can be nested +
+
+
+
+ +
+ diff --git a/test/lists.tex.exp b/test/lists.tex.exp new file mode 100644 index 0000000..392b000 --- /dev/null +++ b/test/lists.tex.exp @@ -0,0 +1,96 @@ + +\documentclass[a4paper]{book} +\usepackage{xcolor} +\usepackage{graphics} +\usepackage{latexsym} +\usepackage{marvosym} +\begin{document} + + + + \begin{titlepage} + + + \begin{center} + \sffamily\bfseries\LARGE{xmldoc lists check} + \end{center} + + + \end{titlepage} + + + + \chapter{Check 3 kinds of lists} + +\begin{itemize} + + +\item + The itemize element + + +\item + creates bulleted lists + +\begin{itemize} + + +\item + and can be nested + + +\end{itemize} + + + +\end{itemize} + +\begin{enumerate} + + +\item + The enumerate element + + +\item + creates numbered lists + +\begin{enumerate} + + +\item + and can also be nested + + +\end{enumerate} + + + +\end{enumerate} + +\begin{description} + + +\item[first item] + The description element + + +\item[second item] + creates lists with description tags + +\begin{description} + + +\item[nested item] + and can be nested + + +\end{description} + + + +\end{description} + + + +\end{document} diff --git a/test/lists.xml b/test/lists.xml new file mode 100644 index 0000000..d325941 --- /dev/null +++ b/test/lists.xml @@ -0,0 +1,60 @@ + + + + + + + + xmldoc lists check + + + + Check 3 kinds of lists + + + + The itemize element + + + creates bulleted lists + + + and can be nested + + + + + + + + The enumerate element + + + creates numbered lists + + + and can also be nested + + + + + + + + The description element + + + creates lists with description tags + + + and can be nested + + + + + + + + + +