You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
~r{<div class="summary-signature">\s*<a href="#example_1/0" data-title="Go to example_1/0" aria-label="Go to macro example_1/0">example_1\(\)</a>\s*</div>}
94
96
end
95
97
96
98
test"contains links to summary sections when those exist"do
~r{<div class="section-heading">\s*<a href="#module-example-unicode-escaping" class="hover-link" title="Link to this section" aria-label="Link to Example [^<]+ escaping"><span class="icon-link" aria-hidden="true"></span></a>\s*<h2 id="module-example-unicode-escaping">\s*Example[^<]+ escaping\s*</h2>\s*</div>}ms
~r{<div class="section-heading">\s*<a href="#module-example-h3-heading" class="hover-link" title="Link to this section" aria-label="Link to Example H3 heading">.*<span class="icon-link" aria-hidden="true"></span></a>\s*<h3 id="module-example-h3-heading">\s*Example H3 heading\s*</h3>\s*</div>}ms
345
345
346
346
# Summaries
347
347
assertcontent=~~r{example/2.*Some example}ms
@@ -350,15 +350,15 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do
~r{<a href="#example/2" class="detail-link" title="Link to this function">\s*<span class="icon-link" aria-hidden="true"></span>\s*<span class="sr-only">Link to this function</span>\s*</a>}ms
361
+
~r{<a href="#example/2" class="detail-link" title="Link to this function" aria-label="Link to function example/2">\s*<span class="icon-link" aria-hidden="true"></span>\s*</a>}ms
362
362
end
363
363
364
364
test"outputs function groups"do
@@ -398,8 +398,12 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do
~r{<div class="summary-signature">\s*<a href="#example_1/0" data-title=\"Go to example_1/0\" aria-label=\"Go to macro example_1/0\">example_1\(\)</a>\s*</div>}
418
424
end
419
425
420
426
test"contains links to summary sections when those exist"do
@@ -426,7 +432,7 @@ defmodule ExDoc.Formatter.HTML.TemplatesTest do
~r{<div class="section-heading">\s*<a href="#example_with_h3/0-examples" class="hover-link" title="Link to this section" aria-label="Link to Examples"><span class="icon-link" aria-hidden="true"></span></a>\s*<h3 id="example_with_h3/0-examples">\s*Examples[^<]+</h3>\s*</div>}ms
430
436
end
431
437
432
438
test"do not output overlapping functions, causing duplicate IDs"do
~r{<div class="section-heading">\s*<a href="#more-than" class="hover-link" title="Link to this section" aria-label="Link to more > than"><span class="icon-link" aria-hidden="true"></span></a>\s*<h2 id="more-than">\s*more > than\s*</h2>\s*</div>}ms
0 commit comments