summaryrefslogtreecommitdiff
path: root/test/document_test.rb
AgeCommit message (Collapse)Author
2023-05-10resolves #4452 enclose reftext tag in article tag in DocBook output for man ↵Dan Allen
page (PR #4453)
2023-05-06resolves #4448 apply reftext substitutions to value of mantitle attribute in ↵Dan Allen
DocBook output (PR #4449)
2023-02-21add test to assert behavior when Document#register is called with ref that ↵Dan Allen
is already registered
2022-01-11don't overqualify types in test suiteDan Allen
2021-11-18resolves #4206 process author or authors document attribute in document ↵Dan Allen
header when implicit doctitle is absent (PR #4208)
2021-10-22resolve #4192 honor :header_only option when parsing document with manpage ↵Dan Allen
doctype (PR #4193)
2021-08-17remove wip keyword from name of test [skip ci]Dan Allen
2021-07-31omit_parentheses where possible in test codeDan Allen
2021-06-09remove irrelevant unassertions from test suiteDan Allen
- a test already fails if an exception is thrown
2021-06-08use assert_raises in test suite where possibleDan Allen
2021-06-03use single level of indentation for method calls that wrap [skip ci]Dan Allen
2021-05-31use appropriate assertions in test suiteDan Allen
- assert_equal instead of == - assert instead of assert_equal true - refute instead of assert_equal false - specify literal value as first argument to assert_equal
2021-05-28remove excess empty lines in test suite; use multiple lines for class ↵Dan Allen
definitions [skip ci]
2021-05-27fix spaces and indentation in test suiteDan Allen
2021-05-27fix invalid integer values in test suiteDan Allen
2021-05-27remove excess spaces before value of Hash entry in test suite [skip ci]Dan Allen
2021-05-25use single-quoted strings where possible in test suiteDan Allen
2021-05-25use key? instead of has_key? in tests [skip ci]Dan Allen
2021-05-25fix missing spaces when defining hash and array in test suite [skip ci]Dan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2021-04-18resolves #4024 suppress missing attribute warning when processing value for ↵Dan Allen
doctitle attribute (PR #4025) suppress missing attribute warning when applying substitutions to implicit document title to assign to doctitle attribute author should assume there's an implicit attribute entry for doctitle directly after the document title (level-0 section title)
2021-04-18verify attribute entry in document header can reference intrinsic doctitle ↵Dan Allen
attribute
2021-04-09resolves #3757 output all mannames in name section of HTML output for ↵Dan Allen
manpage doctype (PR #4009)
2021-04-09resolves #3997 rollback change for #3470; skip empty lines before processing ↵Dan Allen
document header instead (PR #4002)
2020-10-31resolves #3804 link the notitle and showtitle attributes (PR #3805)Dan Allen
2020-10-31resolves #3513 apply max width to each top-level container instead of body ↵Dan Allen
in HTML output (PR #3801)
2020-10-31fix spelling error in test descriptionDan Allen
2019-12-06resolves #3470 condense contents of AsciiDoc include file (PR #3502)Dan Allen
2019-12-05fix misspelling in test descriptionsDan Allen
2019-04-28resolves #3283 register images in catalog correctly (PR #3284)Dan Allen
- register method accepts image as string - register method reads value of imagesdir attribute from document
2019-04-19set SOURCE_DATE_EPOCH when running testsDan Allen
- set SOURCE_DATE_EPOCH when running tests to ensure it's properly managed - fix two tests that were failing when SOURCE_DATE_EPOCH was set
2019-04-15use portability constants (CC_ALL, CC_ANY) in regular expressions defined in ↵Dan Allen
DocBook converter - use CC_ANY to represent any character except a newline - align regexp for cover image with that of main parser
2019-03-25remove unused reftexts catalog entry assertions [skip ci]Dan Allen
2019-03-22use symbol blocks where appropriate in test suiteDan Allen
2019-03-21resolves #2441 substitute replacements in author values used in document ↵Dan Allen
header (PR #3182) - substitute replacements in author values used in document header - require space after semi-colon that separates multiple authors
2019-03-19resolves #2861 log dropped lines at info level when ↵Dan Allen
attribute-missing=drop-line (PR #3170)
2019-03-19resolves #3163 drop indexterms table from document catalog (PR #3169)Dan Allen
2019-03-18when resolving a convert method for a node, only consider methods prefixed ↵Dan Allen
with convert_ (PR #3150) - prefix convert methods on built-in converters with convert_ - drop leading underscore from helper methods on built-in converters - add adapter for older converters that rely on unprefixed convert methods - use optimize convert handler dispatcher in HTML 5 converter - only pass options to convert handler method if value is non-nil - update RDoc
2019-03-14resolves #1444 rename header_footer option to standalone (PR #3146)Dan Allen
* still honor header_footer option as fallback for backwards compatibility
2019-03-01resolves #3114 log warning if footnoteref macro is found and compat mode is ↵Dan Allen
not enabled (PR #3115)
2019-02-28resolves #3106 apply header subs when assigning doctitle back to doctitle ↵Dan Allen
attribute (PR #3107) - apply header subs to doctitle attribute so it can safely be referenced in page - simplify logic that checks for doctitle override
2019-02-19resolves #3084 only store :refs, not :ids, in document catalog (PR #3079)Dan Allen
* remove the logic that registers entries in :ids table of the document catalog * don't attempt to compute the reftext when registering an xref (as this information is available from the referenced node and can be retrieved on demnd) * add a Document#resolve_id method to look up ID by reference text (reftext or title); cache the result of lookups once parsing is complete * always look for existing IDs using :refs table (when checking for a duplicate or whether a target exists) * leave the :ids table empty to avoid breaking existing programs and extensions * update tests * add test to verify :ids table is always empty
2019-02-13resolves #1720 add header docinfo insertion slot (PR #3068)Dan Allen
* add docinfo insertion slot for header location to built-in converters
2019-02-10resolves #3064 compute docyear and docdatetime from docdate and doctime (PR ↵Guillaume Grossetie
#3065)
2019-02-10use indented (squiggly) heredoc strings in document_testDan Allen
2019-02-10resolves #3054 never mutate strings; add `frozen_string_literal: true` ↵Dan Allen
comment to source files (PR #3055) - replace gsub! and sub! with gsub and sub, respectively - add `frozen_string_literal: true` magic comment to all Ruby source files - see https://www.mikeperham.com/2018/02/28/ruby-optimization-with-one-magic-comment/
2019-02-05resolves #3005 remove the converter for the docbook45 backend (PR #3040)Dan Allen
- remove the DocBook45Converter class - remove accomodations in DocBook5Converter for DocBook 4.5 - don't register the docbook45 backend name in the converter registry - drop docbook45 from the backend CLI option values - don't mention DocBook 4.5 in the man page - don't mention DocBook 4.5 in the CLI usage statement - update tests to use DocBook 5 instead of DocBook 4.5
2019-02-04use do..end syntax for multiline blocks in test suiteDan Allen
2019-01-15resolves #3017 insert user docinfo after built-in docinfo (PR #3019)Dan Allen
2019-01-14resolves #3011 propagate document ID to DocBook output (PR #3012)Dan Allen