summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* add tests for InsensitiveDict.setdefaultMatthew Peveler2022-06-271-0/+4
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Add failure test for set_compat_modeMatthew Peveler2022-06-271-0/+11
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Add future-compat attribute parsing (#255)Matthew Peveler2022-05-222-67/+120
|
* Split attribute parsing into own module with tests (#246)Matthew Peveler2022-03-011-0/+119
|
* Fix DeprecationWarning on a2x regexes (#247)Matthew Peveler2022-03-011-0/+45
|
* Simplify structure of expected args for test_a2xMatthew Peveler2022-02-171-20/+14
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Add missing __init__.py file to tests directoryMatthew Peveler2022-02-171-0/+0
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Move Plugin to its own moduleMatthew Peveler2022-02-178-0/+35
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Migrate standalone Table code to own moduleMatthew Peveler2022-02-172-0/+45
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Move some funcs to utils moduleMatthew Peveler2022-02-171-0/+35
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Add additional a2x arg parse testcaseMatthew Peveler2022-02-141-0/+8
|
* Fix parsing asciidoc_opt values with spaces for a2x (#237)Matthew Peveler2022-02-111-0/+32
|
* Isolate test inputs to own folder (#231)Matthew Peveler2021-12-2558-75/+8481
|
* Fix handling escaped attributes inside macros (#206)Matthew Peveler2021-10-281-0/+65
|
* Split off utils functions into own module (#197)Matthew Peveler2021-10-161-0/+103
|
* tests: Add missing requires directive for source-highlight (#189)Marvin Schmidt2021-03-301-0/+3
| | | | | | | | | | | | | | | | | Otherwise the test fails in environments without `source-highlight`: [snip] 70: Newline Tests (Override To MAC) SOURCE: asciidoc: tests/data/newline.txt PASSED: html5: tests/data/newline-mac-html5.html 71: Include Line Ranges SOURCE: asciidoc: tests/data/include-lines-test.txt FAILED: html5: tests/data/include-lines-html5.html TOTAL PASSED: 233 TOTAL FAILED: 1 TOTAL SKIPPED: 10 /bin/sh: source-highlight: command not found /bin/sh: source-highlight: command not found /bin/sh: source-highlight: command not found
* fix failing latexmathml testsMatthew Peveler2021-02-065-41/+37
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* fix failing source-highlight-filter testsMatthew Peveler2021-02-065-10/+10
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* add support for lines attribute for include directive (#167)Matthew Peveler2021-02-034-0/+1404
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* move Dict classes into own moduleMatthew Peveler2021-01-301-0/+37
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* fix errors not displaying when called via moduleMatthew Peveler2021-01-291-0/+1
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* run a2x through cli method of asciidocMatthew Peveler2021-01-291-1/+0
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* move asciidoc into proper python module structureMatthew Peveler2021-01-282-8/+16
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* improve indentationMatthew Peveler2020-12-121-15/+28
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Use config newline setting in system attribute evaluation (#155)Christopher Kent Hoadley2020-12-125-0/+1639
| | | | | | | Problems seen with inconsistent newlines in the Table Of Contents HTML pulled in from the configuration file. While the rest of the contents in the resulting HTML file honored the newline style configured by the user, this specific snippet of HTML always used "\r\n". This root of this problem existed for some time, but in earlier versions, the newline style was always "\n". The symptoms changed as a side effect of the issue "Extra line padding in source and literal blocks" (#139). In this issue, the newline style changed to "\r\n", and was noticed by users. Change the System Attribute Evaluation function to use the newline setting from the global "config" instead of using the default newline.
* test newlines as part of test suite (#147)Matthew Peveler2020-10-051-9/+14
| | | | | | | * test newlines as part of test suite Signed-off-by: Matthew Peveler <matt.peveler@gmail.com> * fix failing toc tests
* re-generate expected test output with proper newlines (#146)Matthew Peveler2020-10-03261-127358/+127358
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* print source file when updating test data (#145)Matthew Peveler2020-10-031-1/+6
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* use DEFAULT_NEWLINE constant for line ending for generated test sources (#144)Matthew Peveler2020-09-061-1/+2
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* remove extraneous parantheses in print statement (#141)Matthew Peveler2020-08-221-10/+10
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* auto clean-up generated artifacts from test suite (#135)Matthew Peveler2020-08-1314-6/+199
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* simplify timestamp mocking in testasciidoc.py (#132)Eli Schwartz2020-08-051-24/+2
| | | | | | | | | $SOURCE_DATE_EPOCH is now the officially supported mechanism for guaranteeing stable output timestamps, which means we can simply run the tests using that, and drop some code. This also fixes #131 since the variable would override the mocked time, resulting in tests failing if $SOURCE_DATE_EPOCH was set in the environment (e.g. for linux distro packaging).
* add missing newline between copyright linesMatthew Peveler2020-06-015-10/+10
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* update copyright notice to include generic asciidoc contributors (#115)Matthew Peveler2020-06-016-12/+21
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Fixed character decomposition when ascii-ids is used (#110)Radosław Koppel2020-05-317-0/+1598
| | | | | | | | | | | | | When ascii-ids variable is set asciidoc is expected to normalize all non-ascii characters when creating id from section name. Originally it decomposes unicode characters to base character and accent and then removes all the accents codes. This solution does not work in many cases: (like polish ł->l, german ß -> ss, or russian... well basically any russian character). This commit allows to use trans package when available to normalize chapter ids. Signed-off-by: Radosław Koppel <r.koppel@k-el.com> Co-authored-by: Matthew Peveler <matt.peveler@gmail.com>
* allow floating dblatex figures, examples, equations and tables with ↵Nick Psaris2020-05-316-5/+80
| | | | | floatstyle attribute (#108) Co-authored-by: Matthew Peveler <matt.peveler@gmail.com>
* fix links to asciidoc site to use httpsMatthew Peveler2020-05-3025-56/+56
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* remove symlinked images directory in doc (#112)Matthew Peveler2020-05-291-1/+3
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* clean-up filters to adhere to flake8 (#118)Matthew Peveler2020-05-292-3/+5
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* update information on website to be more up-to-date about asciidoc-py3 (#111)Matthew Peveler2020-05-285-5/+5
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* create script to generate gh-pages website (#102)Matthew Peveler2020-05-281-1/+1
| | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Fix generated links for docbook5 backend using wrong namespace (#109)Radosław Koppel2020-05-0444-44/+44
| | | | | | This commits changes the xl namespace to xlink in the header. It matches the namespace used in links and the one required by dtd. Signed-off-by: Radosław Koppel <r.koppel@k-el.com>
* add requires directive to testasciidoc (#107)Matthew Peveler2020-05-032-22/+58
| | | | | | | * add requires directive to testasciidoc Signed-off-by: Matthew Peveler <matt.peveler@gmail.com> * Update CHANGELOG.txt
* remove symlinked tests/asciidocapi.pyMatthew Peveler2020-04-262-1/+1
| | | | Signed-off-by: Matthew Peveler <matt.peveler@gmail.com>
* Add generated testcases to repository (#68)Matthew Peveler2019-11-24273-0/+128182
| | | | | | | | | | | | * Add generated testcases to repository * Ignore slidy test for now * Comment out the music example for slidy * remove music docblock * Update slidy-example.txt
* Add short version of args to testasciidoc (#82)Joseph Herlant2019-11-151-2/+2
| | | | | | * Add short version of args to testasciidoc * Also update the doc to go with it
* Fix using number flag for testasciidoc.pyMatthew Peveler2019-05-251-1/+1
|
* Move testasciidoc to use argparse (#37)Matthew Peveler2019-04-201-50/+38
|
* Fix various misspells (#32)Joseph Herlant2018-10-081-1/+1
|
* Alpha DocBook5 implementation (#8)Matthew Peveler2018-07-262-45/+46
| | | Alpha Docbook 5 output imlementation for wider testing.