]> source.dussan.org Git - redmine.git/commitdiff
Adds a test for #21202 (#6969).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2015 07:39:09 +0000 (07:39 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Wed, 11 Nov 2015 07:39:09 +0000 (07:39 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@14867 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb

index 65a91b20ac8b2523fa0cf54f557e92cb4f863d80..574d3845b1956f0f55c797d09721f52936724a5a 100644 (file)
@@ -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: