mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Merge rdoc-6.1.0.beta1.
* https://github.com/ruby/rdoc/compare/v6.0.4...v6.1.0.beta1 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64547 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
41fb243684
commit
95e213d354
22 changed files with 575 additions and 193 deletions
|
@ -59,7 +59,7 @@ class TestRDocMarkupToHtmlCrossref < XrefTestCase
|
|||
def test_convert_RDOCLINK_rdoc_ref_method
|
||||
result = @to.convert 'rdoc-ref:C1#m'
|
||||
|
||||
assert_equal para("<a href=\"C1.html#method-i-m\">#m</a>"), result
|
||||
assert_equal para("<a href=\"C1.html#method-i-m\">C1#m</a>"), result
|
||||
end
|
||||
|
||||
def test_convert_RDOCLINK_rdoc_ref_method_label
|
||||
|
@ -75,13 +75,13 @@ class TestRDocMarkupToHtmlCrossref < XrefTestCase
|
|||
|
||||
result = @to.convert 'rdoc-ref:C1#%'
|
||||
|
||||
assert_equal para("<a href=\"C1.html#method-i-25\">#%</a>"), result
|
||||
assert_equal para("<a href=\"C1.html#method-i-25\">C1#%</a>"), result
|
||||
|
||||
m.singleton = true
|
||||
|
||||
result = @to.convert 'rdoc-ref:C1::%'
|
||||
|
||||
assert_equal para("<a href=\"C1.html#method-c-25\">::%</a>"), result
|
||||
assert_equal para("<a href=\"C1.html#method-c-25\">C1::%</a>"), result
|
||||
end
|
||||
|
||||
def test_convert_RDOCLINK_rdoc_ref_method_percent_label
|
||||
|
@ -200,11 +200,16 @@ class TestRDocMarkupToHtmlCrossref < XrefTestCase
|
|||
def test_link
|
||||
assert_equal 'n', @to.link('n', 'n')
|
||||
|
||||
assert_equal '<a href="C1.html#method-c-m">::m</a>', @to.link('m', 'm')
|
||||
assert_equal '<a href="C1.html#method-c-m">m</a>', @to.link('m', 'm')
|
||||
end
|
||||
|
||||
def test_link_for_method_traverse
|
||||
@to = RDoc::Markup::ToHtmlCrossref.new @options, 'C2.html', @c9
|
||||
assert_equal '<a href="C9/A.html#method-i-foo">C9::B#foo</a>', @to.link('C9::B#foo', 'C9::B#foo')
|
||||
end
|
||||
|
||||
def test_link_class_method_full
|
||||
assert_equal '<a href="Parent.html#method-c-m">Parent.m</a>',
|
||||
assert_equal '<a href="Parent.html#method-c-m">Parent::m</a>',
|
||||
@to.link('Parent::m', 'Parent::m')
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue