diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-08 08:50:21 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-11-08 08:50:21 +0000 |
commit | dee154a6ddcade9fd5499b277dabba400662f90d (patch) | |
tree | 597d86b1aa94a59a8588a6f04f9d42dd8a120f33 /test | |
parent | 74b01ff8be996c4ea82e5918192c8c9ab33fc24b (diff) | |
download | redmine-dee154a6ddcade9fd5499b277dabba400662f90d.tar.gz redmine-dee154a6ddcade9fd5499b277dabba400662f90d.zip |
Merged r14812 (#6969).
git-svn-id: http://svn.redmine.org/redmine/branches/3.1-stable@14834 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb | 9 |
1 files changed, 8 insertions, 1 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 6d816537e..b15893744 100644 --- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb +++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb @@ -160,12 +160,19 @@ EXPECTED assert_equal expected.gsub(%r{\s+}, ''), to_html(raw).gsub(%r{\s+}, '') end - def test_escaping + def test_should_escape_unallowed_tags assert_html_output( 'this is a <script>' => 'this is a <script>' ) end + def test_should_escape_less_than_signs + assert_html_output( + '<' => '<', + '1 < 2' => '1 < 2' + ) + end + def test_use_of_backslashes_followed_by_numbers_in_headers assert_html_output({ 'h1. 2009\02\09' => '<h1>2009\02\09</h1>' |