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):
26
26
classpath = System .getProperty(" java.class.path" ),
27
27
None ,
28
28
output = getTempDir().getRoot,
29
- projectVersion = " 1.0" ,
29
+ projectVersion = Some ( " 1.0" ) ,
30
30
projectTitle = None ,
31
31
projectLogo = None ,
32
32
defaultSyntax = None ,
Original file line number Diff line number Diff line change @@ -133,9 +133,9 @@ class TemplateFileTests:
133
133
134
134
135
135
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>
137
137
|<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>
139
139
|</div>""" .stripMargin
140
140
141
141
testContent(
@@ -203,7 +203,9 @@ class TemplateFileTests:
203
203
""" # Hello {{ msg }}!""" ,
204
204
ext = " md"
205
205
) { 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())
207
209
}
208
210
209
211
@ Test
@@ -212,7 +214,8 @@ class TemplateFileTests:
212
214
""" # Hello {{ msg }}!""" ,
213
215
ext = " md"
214
216
) { 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())
216
219
}
217
220
218
221
@ Test
You can’t perform that action at this time.
0 commit comments