summaryrefslogtreecommitdiff
path: root/test/lists_test.rb
AgeCommit message (Collapse)Author
2024-05-06resolves #4565 don't duplicate block attribute line above detached block ↵Dan Allen
that breaks a dlist (PR #4566)
2024-03-15fix indentation in testDan Allen
2024-03-15fix typo in test descriptionDan Allen
2024-02-20resolves #3693 don't break nested dlist with attached block if offset from ↵Dan Allen
parent list by empty line (PR #4512)
2023-11-06resolves #3535 nested dlist attached using list continuation should not ↵Dan Allen
consume detached paragraph (PR #4513)
2023-04-22resolves #4268 implicitly attach nested list that starts with block ↵Dan Allen
attribute lines to dlist entry (PR #4439)
2023-04-16don't allow target of include directive to start or end with a spaceDan Allen
2022-10-24remove outdated workaround in test suite for JRuby heredoc bugDan Allen
2021-12-23Fix typos and misspellings in docs and code (PR #4222)Kian Meng, Ang
2021-10-04resolves #4160 use width attribute to set width of table and table column ↵Dan Allen
(PR #4161)
2021-07-31use single quoted string or use %() for interpolated string in test suiteDan Allen
2021-06-15reenable pending test for folding consecutive list continuation lines; ↵Dan Allen
convert to a negative test
2021-06-15reenable pending test for sibling dlist term; convert it to a negative testDan Allen
2021-06-05consistently use %w to create string arraysDan Allen
2021-06-03use comma after last entry in multi-line array [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 extra empty lines and empty blocks in test suiteDan Allen
2021-05-27fix spaces and indentation in test suiteDan Allen
2021-05-25use single-quoted strings where possible in test suiteDan Allen
2021-04-30leave empty line after magic comment [skip ci]Dan Allen
2020-10-18fix broken testDan Allen
2020-10-17fix bibliography list testsDan Allen
2020-10-17docbook backend: restore reftext after anchor (PR #3782)Nils Carlson
Was previously dropped - seemingly by accident - add to unit test.
2019-11-03resolves #3472 fix infinite loop when callout list with obsolete syntax is ↵Dan Allen
found inside list item (PR #3473)
2019-06-09add additional test for checklist itemSturt Ison
A list item is not a checklist entry if the closing bracket is not immediately followed by the space character
2019-06-07resolves #3321 add test to assert checkbox cannot be followed by tabDan Allen
2019-04-01use IO.popen with env argument in test suite (PR #3229)Dan Allen
2019-03-26resolves #3205 apply verbatim substitutions to literal paragraphs attached ↵Dan Allen
to list item (PR #3206) - improve detection of an indented paragraph that's a continuation of the primary list text - apply verbatim substitutions to all other literal paragraphs - simplify the logic in the ListItem#fold_first method (and stop tracking continuation_connects_first_block) - add tests to verify change
2019-03-22resolves #2818 catalog inline anchors at start of callout list itemsOwen Heisler
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-02resolves #3121 don't eat space before callout number in source block if ↵Dan Allen
line-comment attribute is empty (PR #3122)
2019-02-23resolves #2840 transmit id and role assigned to list item in AST to outputDan Allen
2019-02-19resolves #3085 don't store fallback text on bibref node (PR #3086)Dan Allen
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-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-14document assertion workaround for nokogiri on JRuby [skip ci]Dan Allen
2019-02-13resolves #2766 don't parse dlist entry if term is empty (PR #2767)Dan Allen
- don't parse dlist entry if term is empty - add test to verify term can end with semicolon
2019-02-10fix tests on JRubyDan Allen
2019-02-10use indented (squiggly) heredoc strings in lists_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-08resolves #3051 drop the options attributeDan Allen
- don't store the options attribute on the block once the options are parsed - only store options as individual attributes (e.g., header-option) - add an options method on AbstractNode to retrieve the set of option names - store partial-option as empty string instead of true - reference low-level option attribute internally
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-01-26resolves #2106 make syntax highlighter pluggable (PR #3016)Dan Allen
- define the Asciidoctor::SyntaxHighlighter module to handle all aspects of syntax highlighting - define built-in SyntaxHighlighter adapters for coderay, pygments, highlight.js, html-pipeline, and prettify - move all embedded syntax highlighting logic into SyntaxHighlighter adapters - allow SyntaxHighlighter adapter class to self register with a source highlighter name using register_for - load SyntaxHighlighter adapters lazily (except for highlight.js and html-pipeline) - add :syntax_highlighters and :syntax_highlighter_factory options to API to allow syntax highlighter resolution to be customized - instantiate SyntaxHighlighter adapter once header is finalized if source-highlighter attribute is set on document and basebackend is html - provide SyntaxHighlighter factory modules for registering syntax highlighter adapters (default, custom, and default proxy) - allow SyntaxHighlighter adapters to contribute docinfo at :head and :footer slots in HTML output document - move retrieval and writing of stylesheets for syntax highlighters to SyntaxHighlighter adapters - wire methods in Stylesheets class that pertain to syntax highlighting to SyntaxHighlighter adapters - remove hard-coded styles in Pygments output - update default stylesheets to support Pygments styles and drop CSS workarounds - don't fail if value of pygments-style attribute is not recognized; instead fallback to default style - don't remove nested pre tags in HTML produced by Pygments when linenums are enabled - update default stylesheet to avoid styling nested pre tags - rename pygments table class to pygments-table - change pygments base CSS selector from .listingblock .pygments to pre.pygments - allow color for generic text, line numbers, and line number border to inherit from Pygments style - align stylesheet for default CodeRay style with other syntax highlighters - set default background color for prettify using a selector with the lowest precedence - update and add tests - add tests for the Pygments integration - add pygments.rb dependency and enable Pygments integration tests if the environment variable PYGMENTS=true is set - move syntax highlighter tests to dedicated test file
2019-01-10update development dependencies (PR #3000)Dan Allen
* update dependencies * upgrade nokogiri on JRuby and fix assertions
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-10-26resolves #2783 define any character match to be compatible with JavaScript ↵Dan Allen
(PR #2933)
2018-10-19resolves #2888 don't hang on description list item that begins with /// (PR ↵Dan Allen
#2923) - regexps for any list item and description list item must agree
2018-10-18verify comment line that looks like top-level description list term is skippedDan Allen