File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed
scala3doc/test/dotty/dokka Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ abstract class ScaladocTest(val name: String):
2626 classpath = System .getProperty(" java.class.path" ),
2727 None ,
2828 output = getTempDir().getRoot,
29- projectVersion = " 1.0" ,
29+ projectVersion = Some ( " 1.0" ) ,
3030 projectTitle = None ,
3131 projectLogo = None ,
3232 defaultSyntax = None ,
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ class TemplateFileTests:
133133
134134
135135 val expected =
136- """ <div id="root"><h1>Test page</h1>
136+ """ <div id="root"><h1><a href="#test-page" id="test-page" class="anchor"></a> Test page</h1>
137137 |<p>Hello world!!</p>
138- |<h2>Test page end</h2>
138+ |<h2><a href="#test-page-end" id="test-page-end" class="anchor"></a> Test page end</h2>
139139 |</div>""" .stripMargin
140140
141141 testContent(
@@ -203,7 +203,9 @@ class TemplateFileTests:
203203 """ # Hello {{ msg }}!""" ,
204204 ext = " md"
205205 ) { t =>
206- assertEquals(" <h1>Hello there!</h1>" , t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim())
206+ assertEquals(
207+ """ <h1><a href="#hello-there" id="hello-there" class="anchor"></a>Hello there!</h1>""" ,
208+ t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim())
207209 }
208210
209211 @ Test
@@ -212,7 +214,8 @@ class TemplateFileTests:
212214 """ # Hello {{ msg }}!""" ,
213215 ext = " md"
214216 ) { t =>
215- assertEquals(" <h1>Hello there!</h1>" , t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim())
217+ assertEquals(""" <h1><a href="#hello-there" id="hello-there" class="anchor"></a>Hello there!</h1>""" ,
218+ t.resolveInner(RenderingContext (Map (" msg" -> " there" ))).code.trim())
216219 }
217220
218221 @ Test
You can’t perform that action at this time.
0 commit comments