Commits

Shlomi Fish committed 161f086

Add the preparation for the docbook50 tests.

Does not work yet.

  • Participants
  • Parent commits e520b2b
  • Branches docbook50_test

Comments (0)

Files changed (4)

 CHANGELOG.txt
 asciidoc.conf
 docbook45.conf
+docbook50.conf
 help.conf
 html4.conf
 lang-*.conf

doc/testasciidoc.txt

 AsciiDoc Tests
 ==============
 
-AsciiDoc includes 'testasciidoc', a Python script runs a set of
+AsciiDoc includes 'testasciidoc', a Python script which runs a set of
 AsciiDoc conformance tests. 'testasciidoc' runs through a list of
 AsciiDoc source files, generates backend outputs and then compares
 them to expected result files. The whole process is driven by a
 
 Rationale
 ---------
-When modifying AsciiDoc configuration files or source code it's very
+When modifying AsciiDoc configuration files or source code, it's very
 easy to introduce regression errors. 'testasciidoc' is a tool for
 writing many and varied test cases that can be run after changes have
 been made in order to verify that existing behavior has not been
 #
-# docbook45.conf
+# docbook50.conf
 #
-# Asciidoc DocBook 4.5 configuration file.
+# Asciidoc DocBook 5.x configuration file.
+# Based on docbook45.conf
 #
 
 [miscellaneous]
 pageunits=*
 
 [attributes]
-basebackend=docbook
+basebackend=docbook50
 basebackend-docbook=
-basebackend-docbook45=
-# For backward compatibility (docbook backend was renamed to docbook45 at 8.6.2)
-backend-docbook=
+basebackend-docbook50=
+backend-docbook50=
 # toc and numbered are set to maintain original default behavior.
 toc=
 numbered=

tests/testasciidoc.py

 import asciidocapi
 
 
-BACKENDS = ('html4','xhtml11','docbook','wordpress')    # Default backends.
+BACKENDS = ('html4','xhtml11','docbook','wordpress','docbook50')    # Default backends.
 BACKEND_EXT = {'html4':'.html', 'xhtml11':'.html', 'docbook':'.xml',
-        'wordpress':'.html','slidy':'.html'}
+        'wordpress':'.html','slidy':'.html','docbook50':'.xml',}
 
 
 def iif(condition, iftrue, iffalse=None):