Skip to content

Commit

Permalink
Adds a test for #21202 (#6969).
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.redmine.org/redmine/trunk@14867 e93f8b46-1217-0410-a6f0-8f06a7374b81
  • Loading branch information
jplang committed Nov 11, 2015
1 parent 868d949 commit cb38ee0
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,24 @@ def test_table
assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
end

def test_table_with_alignment
raw = <<-RAW
|>. right|
|<. left|
|<>. justify|
RAW

expected = <<-EXPECTED
<table>
<tr><td style="text-align:right;">right</td></tr>
<tr><td style="text-align:left;">left</td></tr>
<tr><td style="text-align:justify;">justify</td></tr>
</table>
EXPECTED

assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '')
end

def test_table_with_trailing_whitespace
raw = <<-RAW
This is a table with trailing whitespace in one row:
Expand Down

0 comments on commit cb38ee0

Please sign in to comment.