Merge branch 'bzr/golem' of /Users/distler/Sites/code/instiki
This commit is contained in:
commit
95d2fe540f
4 changed files with 19 additions and 5 deletions
|
@ -690,7 +690,7 @@ class WikiControllerTest < ActionController::TestCase
|
|||
a = ''.respond_to?(:force_encoding) ? "\u{1D538}\u00FCthorOfNewPage" :
|
||||
"\360\235\224\270\303\274thorOfNewPage"
|
||||
assert_equal a, new_page.author
|
||||
assert_equal "\xF0\x9D\x94\xB8\xC3\xBCthorOfNewPage".as_bytes, r.cookies['author']
|
||||
assert_equal a, r.cookies['author']
|
||||
end
|
||||
|
||||
def test_save_not_utf8
|
||||
|
|
|
@ -230,6 +230,20 @@ END_THM
|
|||
|
||||
end
|
||||
|
||||
def test_utf8_in_lists
|
||||
|
||||
assert_markup_parsed_as(
|
||||
"<ul>\n<li>\u041E\u0434\u0438\u043D</li>\n\n<li>\u0414" +
|
||||
"\u0432\u0430</li>\n\n<li>\u0422\u0440\u0438</li>\n</ul>",
|
||||
"* \u041E\u0434\u0438\u043D\n* \u0414\u0432\u0430\n* \u0422\u0440\u0438\n")
|
||||
|
||||
assert_markup_parsed_as(
|
||||
"<ol>\n<li>\u041E\u0434\u0438\u043D</li>\n\n<li>\u0414"+
|
||||
"\u0432\u0430</li>\n\n<li>\u0422\u0440\u0438</li>\n</ol>",
|
||||
"1. \u041E\u0434\u0438\u043D\n2. \u0414\u0432\u0430\n3. \u0422\u0440\u0438\n")
|
||||
|
||||
end
|
||||
|
||||
def test_have_latest_itex2mml
|
||||
|
||||
assert_markup_parsed_as(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue