summaryrefslogtreecommitdiff
path: root/spec/toc_spec.rb
AgeCommit message (Collapse)Author
2022-10-30switch from EOS to END as heredoc delimiterDan Allen
2022-10-22port fix for #2354 fix crash if last fragment in TOC entry is not renderedDan Allen
2022-08-30remove debug flag from test suiteDan Allen
2022-08-30don't include children of section with empty title in TOCDan Allen
2022-07-19remove use of build_pdf_theme except where neededDan Allen
2022-06-21resolves #1768 allow theme to control page break after automatic TOC in ↵Dan Allen
article with title page (PR #2245)
2022-06-15use get_entries_for_toc to determine if the TOC is non-empty rather than ↵Dan Allen
Document#sections?
2022-06-15verify toc is not inserted at default location if document has no sectionsDan Allen
2022-05-26resolves #2210 do not filter TOC entries without an ID when computing TOC ↵Dan Allen
extent (PR #2211)
2022-05-25resolves #2208 fix calculation of TOC extent when entries have children but ↵Dan Allen
no ID (PR #2209)
2022-05-07fix formatting of source code in toc testDan Allen
2022-05-03resolves #2128 make allocate_toc method reusable (PR #2129)Dan Allen
2022-05-02resolves #2097 allow extended converter to insert or filter toc entries by ↵Dan Allen
overriding get_entries_for_toc method
2022-04-30change inscribe_ method prefix in converter to ink_ (PR #2113)Dan Allen
2022-04-29should allow inscribe_toc method in extended converter to insert page above ↵Dan Allen
TOC page
2022-04-28resolves #2095 separate align and text-align keys in theme schema and update ↵Dan Allen
docs (PR #2096)
2022-04-18don't crash if theme does not define toc_indent keyDan Allen
2022-04-17resolves #1988 respect nonfacing option on first block in document (PR #2046)Dan Allen
2022-04-13add tests for toc_margin_top key in themeDan Allen
2022-04-05resolves #2003 compute extent of content in scratch document to arrange ↵Dan Allen
content block in primary document * introduce arrange_block helper to handle positioning content block in primary document * reimplement new dry_run to compute the extent and start position of the content block instead of just the height * stop rendering at page boundary in scratch document when computing start position of content block to avoid unnecessary work * ensure that caption stays with start of content block when arranging content block * prevent arrange_block from starting content block on page when no content from block fits on that page * avoid converting content that overruns page in AsciiDoc table cell in scratch document * encapsulate push/pop scratch in arrange_block * add tests for the arrange_block helper * prevent nested breakable blocks from flowing beyond first page when performing on single page only * switch dry_run method to accept keyword arguments * avoid arrange_block when converting open block when possible * include negative tests for image taller than page at top of block * verify borders and backgrounds are not drawn in scratch document * add test to verify behavior of stop_if_first_page_empty * include sanity check before drawing background and border over extent * add rdoc to dry_run and arrange_block help methods * reuse computed extent as TOC extent * remove unused code * raise error if table caption does not fit on single page * add test that footnotes are not pushed down if height exceeds height of page
2022-03-12fix typo in test description [skip ci]Dan Allen
2021-02-25don't crash when generating TOC if section title is emptyDan Allen
2020-11-27add toc-title-align theme key to test caseDan Allen
2020-10-17fix lint violationDan Allen
2020-10-17verify fallback value is used to align toc title if not set in themeDan Allen
2020-09-29upgrade rubocop and update code to honor new rulesDan Allen
2020-09-22only insert macro toc at location of first toc macroDan Allen
2020-08-31add missing test case for facing toc in prepress bookDan Allen
2020-08-30fix assertionDan Allen
2020-08-30allow theme to control font size of dot leader in TOCDan Allen
2020-08-25consistently use "be" matcher to assert page numberDan Allen
2020-08-19resolves #1752 render image at end of section title in corresponding toc ↵Dan Allen
entry (PR #1753)
2020-07-14verify theme can configure font style of dot leader in tocDan Allen
2020-07-14use and enforce a consistent style for comment annotationsDan Allen
2020-07-11verify that no dots are added in TOC entry if number resolves to < 0Dan Allen
2020-07-06add test to verify text decoration can be set per heading level in tocDan Allen
2020-07-03add support for preamble toc placementDan Allen
2020-07-03verify toc is not inserted at macro if only toc-placement attribute is setDan Allen
2020-06-27verify toc macro is skipped if value of toc attribute is macroDan Allen
2020-06-20verify toc is not moved to recto page of prepress book when nonfacing option ↵Dan Allen
is set
2020-06-20verify macro toc starts on recto page of book when media is prepressDan Allen
2020-06-20verify new page isn't started for macro toc if already at top of pageDan Allen
2020-06-13fix assertionDan Allen
2020-06-13verify font color of dot leader is inherited if not specifiedDan Allen
2020-06-12verify manual toc is not inserted if document has no sectionsDan Allen
2020-05-18add test for enabling toc dot leader per section levelDan Allen
2020-05-16verify theme can enable toc dot leader for specific section levelDan Allen
2020-05-16verify toc dot leader can be disabled by setting level to noneDan Allen
2020-05-16verify toc dot leader can be disabled by setting content to empty stringDan Allen
2020-05-16assert behavior when toclevels is less than 0Dan Allen