summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2021-10-28 23:57:26 -0600
committerGitHub <noreply@github.com>2021-10-28 23:57:26 -0600
commitfcfa4964dc05c5743476bb9a225154e2d6a00a50 (patch)
treeb457a6e3fe93ccdf1723ab9416bd2c075d3fdca5 /test
parent71a1ced057bafd1f5515c9d876a45312ec9a44ce (diff)
resolves #4101 add support for role on thematic break to HTML converter (PR #4196)
Diffstat (limited to 'test')
-rw-r--r--test/blocks_test.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/blocks_test.rb b/test/blocks_test.rb
index d5e86d73..a6953d37 100644
--- a/test/blocks_test.rb
+++ b/test/blocks_test.rb
@@ -61,6 +61,16 @@ context 'Blocks' do
assert_xpath '/hr/following-sibling::*', output, 1
end
+ test 'horizontal rule with role' do
+ input = <<~'EOS'
+ [.fancy]
+ '''
+ EOS
+ output = convert_string_to_embedded input
+ assert_css 'hr', output, 1
+ assert_css 'hr.fancy', output, 1
+ end
+
test 'page break' do
output = convert_string_to_embedded %(page 1\n\n<<<\n\npage 2)
assert_xpath '/*[@class="page-break"]', output, 1