Skip to content

Commit d350008

Browse files
QuietMisdreavusGuillaumeGomez
authored andcommitted
add test for rustdoc's --themes flag
1 parent f3e4279 commit d350008

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
-include ../tools.mk
2+
3+
# Test that rustdoc will properly load in a theme file and display it in the theme selector.
4+
5+
OUTPUT_DIR := "$(TMPDIR)/rustdoc-themes"
6+
7+
all:
8+
cp $(S)/src/librustdoc/html/static/themes/light.css $(TMPDIR)/test.css
9+
$(RUSTDOC) -o $(OUTPUT_DIR) foo.rs --themes $(TMPDIR)/test.css
10+
$(HTMLDOCCK) $(OUTPUT_DIR) foo.rs
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// @has test.css
2+
// @has foo/struct.Foo.html
3+
// @has - '//link[@rel="stylesheet"]/@href' '../test.css'
4+
pub struct Foo;

0 commit comments

Comments
 (0)