1
Fork 0

add test for rustdoc's --themes flag

This commit is contained in:
QuietMisdreavus 2019-05-24 14:04:45 -05:00 committed by Guillaume Gomez
parent f3e4279ccc
commit d350008c88
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,10 @@
-include ../tools.mk
# Test that rustdoc will properly load in a theme file and display it in the theme selector.
OUTPUT_DIR := "$(TMPDIR)/rustdoc-themes"
all:
cp $(S)/src/librustdoc/html/static/themes/light.css $(TMPDIR)/test.css
$(RUSTDOC) -o $(OUTPUT_DIR) foo.rs --themes $(TMPDIR)/test.css
$(HTMLDOCCK) $(OUTPUT_DIR) foo.rs

View file

@ -0,0 +1,4 @@
// @has test.css
// @has foo/struct.Foo.html
// @has - '//link[@rel="stylesheet"]/@href' '../test.css'
pub struct Foo;