mirror of
https://github.com/redmine/redmine.git
synced 2025-11-04 20:35:57 +01:00
Textile: ignore invalid lang attribute values (#18501).
git-svn-id: http://svn.redmine.org/redmine/trunk@13677 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -110,6 +110,20 @@ class Redmine::WikiFormatting::TextileFormatterTest < ActionView::TestCase
|
||||
)
|
||||
end
|
||||
|
||||
def test_lang_attribute
|
||||
assert_html_output(
|
||||
'*[fr]French*' => '<strong lang="fr">French</strong>',
|
||||
'*[fr-fr]French*' => '<strong lang="fr-fr">French</strong>',
|
||||
'*[fr_fr]French*' => '<strong lang="fr_fr">French</strong>'
|
||||
)
|
||||
end
|
||||
|
||||
def test_lang_attribute_should_ignore_invalid_value
|
||||
assert_html_output(
|
||||
'*[fr3]French*' => '<strong>[fr3]French</strong>'
|
||||
)
|
||||
end
|
||||
|
||||
def test_nested_lists
|
||||
raw = <<-RAW
|
||||
# Item 1
|
||||
|
||||
Reference in New Issue
Block a user