summaryrefslogtreecommitdiff
path: root/test/paragraphs_test.rb
AgeCommit message (Collapse)Author
2024-03-07resolves #4556 set cloaked-context attribute on source block when context is ↵Dan Allen
not :listing (PR #4563)
2022-10-24remove outdated workaround in test suite for JRuby heredoc bugDan Allen
2021-07-31use single quoted string or use %() for interpolated string in test suiteDan Allen
2021-07-31omit_parentheses where possible in test codeDan Allen
2021-07-31extend test for indexterm-promotion option to cover case when term has two ↵Dan Allen
entries
2021-05-25use single-quoted strings where possible in test suiteDan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2019-03-22resolve #2047 add support for see and see also relationships on index terms ↵Dan Allen
(PR #3181) - add support for see and see also relationships on index terms (shorthand and macro) - parse attributes on indexterm* macros if text contains `=`
2019-03-21resolves #1487 only promote indexterms automatically if indexterm-promotion ↵Dan Allen
option is set (PR #1497)
2019-03-02resolves #3123 rename hardbreaks document attribute to hardbreaks-option (PR ↵Dan Allen
#3124)
2019-03-01resovles #3092 log debug message instead of warning if block style is ↵Dan Allen
unknown (PR #3097) - log debug message instead of warning if block style is unknown - log debug message if block macro name is unknown
2019-02-15clean up newline handling in test suite (PR #3074)Dan Allen
- use chop instead of chomp to remove trailing newline from heredoc string - document all uses of non-quoted squiggly heredoc to preserve indentation - fix incorrect preparation of uniform indentation in list tests - remove unnecessary uses of chomp
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-02add reference in test suite to JRuby heredoc issue [skip ci]Dan Allen
2019-02-02fix broken tests on JRubyDan Allen
- JRuby incorrectly drops all indentation in a squiggly heredoc when interpolation is disabled
2019-02-02use indented (squiggly) heredoc strings in extensions_testDan Allen
2019-02-02use indented (squiggly) heredoc strings in paragraphs_testDan Allen
2019-01-06switch to modern hash syntaxDan Allen
- switch to modern hash syntax (from :key => value to key: value) - put space inside hash brackets (from {key: value} to { key: value } - use dangling comma on last entry of multi-line hash
2019-01-06use require_relative instead of modifying $LOAD_PATHDan Allen
- use require_relative in place of require when it relied on $LOAD_PATH manipulation - configure bin scripts to work with require_relative - rename ROOT_PATH to ROOT_DIR - rename DATA_PATH to DATA_DIR - rename STYLESHEETS_DATA_PATH to STYLESHEETS_DIR - define LIB_DIR - simplify test helper require and setup - add bindir helper to test suite - remove unneeded constants in test helper - reorder autoload statements - require version directly instead of autoloading
2019-01-06remove workarounds for Ruby < 2.3Dan Allen
- remove constants for differentiating between Ruby versions - remove fallback assignment for RUBY_ENGINE constant - remove rubygems require - use unicode character properties in regular expressions (e.g., \p{Word}) - remove COERCE_ENCODING constant - always set FORCE_ENCODING constant to true unless default external encoding is not UTF-8 - remove workaround for computing line length - use lines method instead of lines.entries to get lines for string - always normalize lines - check if JRuby class is defined instead of checking for JRuby engine - remove global RUBY_ENGINE_JRUBY constant - move RUBY_ENGINE_OPAL constant inside Asciidoctor module - remove magic encoding comments (since default script encoding is UTF-8) - remove workaround when printing encoding information - remove fallback assignments for passthrough escape characters - remove Ruby core backports (only leave Asciidoctor-specific extensions) - use __dir__ instead of File.dirname __FILE__ - use Float#truncate to truncate column widths - override Float#truncate on Ruby 2.3 to implement precision argument - remove concurrent/hash backport - simplify class_for_name helper - don't call to_sym on constants returned from constants method - remove unnecessary aliasing of regexp match variables; use magic variable instead (e.g., m = $~) - remove workaround for sub_specialchars to accomodate gsub with map argument - remove comment about %:z placeholder for strftime - don't call .to_a on return value of Hash#keys - get home directory using Dir.home - remove exceptions and exclusions for Ruby < 2 in test suite - update list of supported Ruby engines and versions in READMEs - update ruby versions in run-tests.sh
2018-09-11replace the use of render with convert in test suiteDan Allen
- rename render_string to convert_string - rename render_embedded_string to convert_string_to_embedded - rename render_inline_string to convert_inline_string - use convert_inline_string where :doctype was being set to :inline
2018-04-14use helpers to assert log messages in testsDan Allen
- add assert_message helper for asserting a single message - add assert_messages helper for asserting multiple messages - rewrite paths and reader tests to assert log messages instead of stderr stream - assert message about illegal reference to parent is only reported on first violation when resolving system path - use instance variable to store shared logger in tests
2018-04-14update tests to use memory logger instead of capturing stderrDan Allen
- use memory logger in some of the tests instead of capturing messages from stderr - add test to verify basic formatter includes progname and source location in printed message
2017-09-28use assert_includes in place of raw assertion in paragraph testsDan Allen
2017-09-13allow paragraph to masquerade as open block (PR #2412)Dan Allen
2017-07-23use refute in place of assert ! in test suite (PR #2336)Dan Allen
- replace assert ! with refute - use assert_nil and refute_nil - use assert_empty and refute_empty - use assert_kind_of instead of direct is_a? call - use assert_respond_to instead of direct respond_to? call
2017-06-04assert warning when there's no candidate for inline conversionDan Allen
2017-05-13pass count to path query method in test helperDan Allen
2016-11-13resolves #1923 preprocess lines of a simple block (PR #1927)Dan Allen
2015-12-29remove trailing endlines in sourceDan Allen
2015-10-25resolves #1544 built-in writer should not fail if output is nilDan Allen
- don't fail if output is nil - don't output trailing endline if output is empty - inline doctype should return nil if there's nothing to convert
2014-08-11stylesheet improvements; use data-lang for source listingsDan Allen
- lighten bold where Open Sans is used (headings, verses) - add border-collapse: separate where borders are used on tables - remove unnecessary font-weight declarations - use Open Sans for admonition label - set padding bottom on paragraph in rems - use 1.45 for sidebarblock line-height - simplify the selector to set background-color on listing & literal blocks - use data-lang to create language hover text for any language on listing blocks - use border: none instead of border: 0
2014-08-07add line break opportunity (&#8203;) after emdash and ellipsesDan Allen
2014-07-14resolves #717 disable single quotes as formatting marks for emphasized textDan Allen
- disable single quotes as emphasis formatting marks by default - introduce compat-mode document attribute to reenable legacy behavior - add compat_mode property to document to set compatibility mode - don't replace trailing single quote with right single smart quote - introduce `' as the formatting mark to make a right single quote (rsquo) - unescape escaped single quote explicitly - update compat file for AsciiDoc Python
2014-02-05refactor unit tests so they work in RubyMineCharles Moulliard
- explicitly add the test and lib directory to the load path - switch to the project root before running tests - add UTF-8 encoding magic header to all test files - exclude .gem file at root of project (where RubyMine puts it) This commit was modified from the original pull request by @mojavelinux
2013-11-20resolves #799 perform normal subs on verse contentDan Allen
2013-11-07resolves #768 emit warning if part is invalidDan Allen
- warn if part has intro content that doesn't have partintro style - warn if part has no sections - cleanup invalid multipart book examples in test suite
2013-10-07resolves #579 specialchars subs alias, shorthand subsDan Allen
- add specialchars as an alias for the subs key specialcharacters - resolve single-letter subs for inline usages such as pass:[]
2013-09-30resolves #630 add hardbreaks option to blockDan Allen
- add hardbreaks option to block (emulate ' +' at end of line) - cleanup some attribute lookups
2013-08-25only remove leading indent from normal paragraphDan Allen
2013-08-23unindent literal paragraph with normal styleDan Allen
2013-05-27resolves #202 add prettify source-highlighterDan Allen
- add prettify as a source-highlighter option - add javascript language hover - add language-* class to pre or code tag for listing
2013-05-23resolves #328 support for inline renderingDan Allen
2013-05-16minor fixesDan Allen
2013-05-02resolves #297 support for abstract and partintroDan Allen
- support for abstract and partinfo style on open block - support for abstract and partinfo style on paragraph - wrap text in paragraph with complex block style in simpara - fix missing @ on field reference - fix missing endlines for blocks output by result methods - add text support to open block - backend optimizations
2013-05-02resolves #309 exclude attribute div if quote has no attributionDan Allen
- also move block quote tests to blocks tests and cleanup
2013-04-22resolves #265 add admonition name as style classDan Allen
2013-04-22resolves #187 complete masquerade functionality for blocks & paragraphsDan Allen
- rework block parsing - move block creation to a separate method - add method to assign or generate block caption - add set_attr method to block - use sets where appropriate to improve speed - cleanup two-line section matching - optimize reader operations - add flags to control compliance w/ AsciiDoc - tests for masquerading, captions and other compliance
2013-04-21resolves #220 support explicit subs on blocksDan Allen