Skip to content

Commit

Permalink
Added more tests for the compose_horizontal_dlist() method.
Browse files Browse the repository at this point in the history
  • Loading branch information
jhradilek committed Nov 13, 2024
1 parent c0b72c2 commit e07046e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/test_horizontal_dlist.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,17 @@ def test_horizontal_dlist_outputclass
assert_xpath_equal xml, 'horizontal-dlist', '//table/@outputclass'
end

def test_horizontal_dlist_widths
xml = <<~EOF.chomp.to_dita
[horizontal,labelwidth=30,itemwidth=70]
Term1:: Definition one
Term2:: Definition two
EOF

assert_xpath_equal xml, '30*', '//table/tgroup/colspec[1]/@colwidth'
assert_xpath_equal xml, '70*', '//table/tgroup/colspec[2]/@colwidth'
end

def test_horizontal_dlist_title
xml = <<~EOF.chomp.to_dita
.A description list title
Expand Down

0 comments on commit e07046e

Please sign in to comment.