File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -177,7 +177,8 @@ a set of tests in `src/test/rustdoc` that make sure the final HTML is what we
177177expect in various situations. These tests also use a supplementary script,
178178` src/etc/htmldocck.py ` , that allows it to look through the final HTML using
179179XPath notation to get a precise look at the output. The full description of all
180- the commands available to rustdoc tests is in ` htmldocck.py ` .
180+ the commands available to rustdoc tests (e.g. [ ` @has ` ] and [ ` @matches ` ] ) is in
181+ [ ` htmldocck.py ` ] .
181182
182183To use multiple crates in a rustdoc test, add ` // aux-build:filename.rs `
183184to the top of the test file. ` filename.rs ` should be placed in an ` auxiliary `
@@ -193,6 +194,10 @@ that features results in all tabs can be found in `basic.js`. The basic idea is
193194that you match a given ` QUERY ` with a set of ` EXPECTED ` results, complete with
194195the full item path of each item.
195196
197+ [ `htmldocck.py` ] : https://github.com/rust-lang/rust/blob/master/src/etc/htmldocck.py
198+ [ `@has` ] : https://github.com/rust-lang/rust/blob/master/src/etc/htmldocck.py#L39
199+ [ `@matches` ] : https://github.com/rust-lang/rust/blob/master/src/etc/htmldocck.py#L44
200+
196201## Testing locally
197202
198203Some features of the generated HTML documentation might require local
You can’t perform that action at this time.
0 commit comments