add test for rustdoc's --themes flag
This commit is contained in:
parent
f3e4279ccc
commit
d350008c88
2 changed files with 14 additions and 0 deletions
10
src/test/run-make-fulldeps/rustdoc-themes/Makefile
Normal file
10
src/test/run-make-fulldeps/rustdoc-themes/Makefile
Normal 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
|
4
src/test/run-make-fulldeps/rustdoc-themes/foo.rs
Normal file
4
src/test/run-make-fulldeps/rustdoc-themes/foo.rs
Normal file
|
@ -0,0 +1,4 @@
|
|||
// @has test.css
|
||||
// @has foo/struct.Foo.html
|
||||
// @has - '//link[@rel="stylesheet"]/@href' '../test.css'
|
||||
pub struct Foo;
|
Loading…
Add table
Add a link
Reference in a new issue