From 2ef9c50c6e405717d06362787c4549ca4f1c6485 Mon Sep 17 00:00:00 2001 From: drbrain Date: Mon, 20 Dec 2010 03:22:49 +0000 Subject: Import RDoc 3 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@30249 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/rdoc/test_rdoc_markup_to_html.rb | 188 +++++++++++++++++++++++----------- 1 file changed, 130 insertions(+), 58 deletions(-) (limited to 'test/rdoc/test_rdoc_markup_to_html.rb') diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb index f6014391c8..8a5860fe25 100644 --- a/test/rdoc/test_rdoc_markup_to_html.rb +++ b/test/rdoc/test_rdoc_markup_to_html.rb @@ -31,49 +31,73 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase end def accept_heading - assert_equal "
Hello
\n", @to.res.join + assert_equal "\n
Hello
\n", @to.res.join + end + + def accept_heading_1 + assert_equal "\n

Hello

\n", @to.res.join + end + + def accept_heading_2 + assert_equal "\n

Hello

\n", @to.res.join + end + + def accept_heading_3 + assert_equal "\n

Hello

\n", @to.res.join + end + + def accept_heading_4 + assert_equal "\n

Hello

\n", @to.res.join + end + + def accept_heading_b + assert_equal "\n

Hello

\n", @to.res.join + end + + def accept_heading_suppressed_crossref + assert_equal "\n

Hello

\n", @to.res.join end def accept_list_end_bullet assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "\n", @to.res.join + assert_equal "\n", @to.res.join end def accept_list_end_label assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "
\n
\n", @to.res.join + assert_equal "
\n", @to.res.join end def accept_list_end_lalpha assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "
    \n
\n", @to.res.join + assert_equal "
    \n", @to.res.join end def accept_list_end_number assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "
      \n
    \n", @to.res.join + assert_equal "
      \n", @to.res.join end def accept_list_end_note assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "\n
      \n", @to.res.join + assert_equal "
      \n", @to.res.join end def accept_list_end_ualpha assert_equal [], @to.list assert_equal [], @to.in_list_entry - assert_equal "
        \n
      \n", @to.res.join + assert_equal "
        \n", @to.res.join end def accept_list_item_end_bullet @@ -101,73 +125,105 @@ class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase end def accept_list_item_start_bullet - assert_equal "