Skip to content

Commit be2f01b

Browse files
Update dottydoc tests
1 parent 766746c commit be2f01b

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

doc-tool/test/dotty/tools/dottydoc/staticsite/SiteTests.scala

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ class SiteTests extends DottyDocTest with SourceFileOps with CheckFromSource {
1010
assert(site.root.exists && site.root.isDirectory,
1111
s"'${site.root.getName}' is not a directory")
1212

13-
val expectedLayouts = Set("main", "index", "blog-page", "doc-page", "api-page", "search")
13+
val expectedLayouts = Set("base", "main", "index", "blog-page", "doc-page", "api-page", "search")
1414
assert(site.layouts.keys == expectedLayouts,
1515
s"Incorrect layouts in: ${site.layouts.keys}, expected: $expectedLayouts")
1616
}
@@ -82,17 +82,23 @@ class SiteTests extends DottyDocTest with SourceFileOps with CheckFromSource {
8282
val compd = site.compilableFiles.map(site.stripRoot(_).replace('\\','/')).toSet
8383

8484
val expectedAssets = Set(
85-
"css/toolbar.css",
86-
"css/sidebar.css",
87-
"css/search.css",
88-
"css/api-page.css",
89-
"css/dottydoc.css",
90-
"css/color-brewer.css",
9185
"css/bootstrap.min.css",
86+
"css/color-brewer.css",
87+
"css/dottydoc.css",
88+
"css/search.css",
89+
"css/sidebar.css",
90+
"css/toolbar.css",
91+
"images/dotty-logo-white.svg",
92+
"images/dotty-logo.svg",
93+
"images/scala-logo-white.svg",
94+
"images/scala-logo.svg",
9295
"js/api-search.js",
93-
"js/highlight.pack.js",
9496
"js/bootstrap.min.js",
95-
"js/jquery.min.js"
97+
"js/dottydoc.js",
98+
"js/highlight.pack.js",
99+
"js/jquery.min.js",
100+
"js/sidebar.js",
101+
"js/toolbar.js"
96102
)
97103
val expectedCompd = Set(
98104
// Directories starting in `_` are not included in compilable files

0 commit comments

Comments
 (0)