diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-11 07:39:09 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-11 07:39:09 +0000 |
commit | cb38ee0e35a6e713c1862723dcb359d671d3e17c (patch) | |
tree | fcbbe9dd959a394eaf98f4ed3a39d3d2e9011d2b /test | |
parent | 868d949f47c2767f2d8943edf530dfbc9d00fb73 (diff) | |
download | redmine-cb38ee0e35a6e713c1862723dcb359d671d3e17c.tar.gz redmine-cb38ee0e35a6e713c1862723dcb359d671d3e17c.zip |
Adds a test for #21202 (#6969).
git-svn-id: http://svn.redmine.org/redmine/trunk@14867 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb index 65a91b20a..574d3845b 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -249,6 +249,24 @@ EXPECTED 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: |