summaryrefslogtreecommitdiff
path: root/spec/admonition_spec.rb
AgeCommit message (Collapse)Author
2022-10-30switch from EOS to END as heredoc delimiterDan Allen
2022-10-29remove unused breakable tag in test suiteDan Allen
2022-10-28upgrade RuboCop, configure new rules, and update code to conformDan Allen
2022-09-10reference remote image that corresponds to current release line branchDan Allen
2022-09-10mark test that uses networkDan Allen
2022-08-21resolves #2318 allow theme to specify width for image-based admonition icons ↵Dan Allen
(PR #2319) * introduce scale theme key for admonition icon to scale down icon without affecting layout * introduce width theme key for admonition icon to control width of image-based icon
2022-08-06resolves #2293 insert column break multi-column layout if column role is ↵Dan Allen
specified on page break macro (PR #2299)
2022-06-18fix crash when border color is transparentDan Allen
2022-06-12fix test setupDan Allen
2022-06-12add test to verify SVG admonition icon is positioned in correct column when ↵Dan Allen
page columns are enabled
2022-05-04resolves #2134 use base-border-color as default border color (PR #2136)Dan Allen
2022-04-30fix crash in certain circumstances when theme does not define value for ↵Dan Allen
base-border-width key
2022-04-30resolves #2104 support 2 and 3-value array for padding on block (PR #2106)Dan Allen
2022-04-28resolves #2095 separate align and text-align keys in theme schema and update ↵Dan Allen
docs (PR #2096)
2022-04-28report admonition type in warning about missing implicit admonition icon imageDan Allen
2022-04-28change "icon" to "icon image" in warning about missing or broken admonition ↵Dan Allen
icon image
2022-04-27resolves #1697 allow theme to configure admonition icon image when ↵Dan Allen
image-based icons are enabled (PR #2089)
2022-04-26resolves #2068 protect bottom padding of decorated blocks (PR #2073)Dan Allen
2022-04-18resolves #2013 allow location of anchor for block to be positioned relative ↵Dan Allen
to content using block-anchor-top key in theme (PR #2048)
2022-04-17verify fix for #907 do not increment counter more times than expectedDan Allen
2022-04-14resolves #1515 implement smart block bottom margins to prevent extra space ↵Dan Allen
below blocks, particularly nested blocks (PR #2028)
2022-04-11verify correct padding is applied around content of admonition blockDan 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-19remove requirement to wrap first argument to log_messages assertion as a ↵Dan Allen
nested array
2022-03-05add helper to retrieve metadata for destinationDan Allen
2021-04-03keep anchor with admonition block if block is advanced to next pageDan Allen
2021-02-16verify default width is used for vertical rule if not specifiedDan Allen
2021-01-26use new precision setting in PrawnDan Allen
upgrade precision from 4 to 5
2021-01-11align warning message about allow-uri-read with core processorDan Allen
2020-10-24remove unused instances of analyze option in test suiteDan Allen
2020-09-14verify warnings for SVG admonition are only emitted in main documentDan Allen
2020-08-29verify text transform is applied to fallback label text of admonition when ↵Dan Allen
image is missing
2020-08-29resize admonition label to fit if height exceeds height of content boxDan Allen
2020-08-28add a log_messages expectation for asserting multiple log messagesDan Allen
2020-08-28verify remote admonition icon image is not embedded if allow-uri-read is not ↵Dan Allen
set or image is missing - also output icon image path if not found
2020-08-26verify prose_margin_bottom controls padding around content box of admonition ↵Dan Allen
block
2020-08-17resolves #1741 show textual label on admonition if icon image fails to embed ↵Dan Allen
(PR #1748)
2020-08-15verify that admonition label is used in place of missing admonition iconDan Allen
2020-08-11verify vertical rule on admonition can have dashed, dotted, or double styleDan Allen
2020-08-09verify case when text transform is none or an unrecognized valueDan Allen
2020-08-06verify warning is emitted when raster icon for admonition block cannot be ↵Dan Allen
embedded
2020-07-19verify SVG warnings for admonition icon are loggedDan Allen
2020-07-17test that admonition uses base border width for column rule if column rule ↵Dan Allen
width is nil
2020-07-15verify data-uri attribute is toggled properly when resolving icon image for ↵Dan Allen
admonition block
2020-07-15use resolve_image_path to resolve path to admonition icon imageDan Allen
* allows admonition icon image to be remote (if allow-uri-read is set) or data URI
2020-07-14use and enforce a consistent style for comment annotationsDan Allen
2020-07-01make sure converter doesn't crash if theme does not define icon properties ↵Dan Allen
for custom admonition type
2020-06-26verify admonition icon images honors label min widthDan Allen
2020-06-26add test for icontype attribute to control file extension of admonition imageDan Allen
2020-06-18verify admonition icon is resize to fit, if necessaryDan Allen