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
177
177
expect in various situations. These tests also use a supplementary script,
178
178
` src/etc/htmldocck.py ` , that allows it to look through the final HTML using
179
179
XPath 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 ` ] .
181
182
182
183
To use multiple crates in a rustdoc test, add ` // aux-build:filename.rs `
183
184
to 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
193
194
that you match a given ` QUERY ` with a set of ` EXPECTED ` results, complete with
194
195
the full item path of each item.
195
196
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
+
196
201
## Testing locally
197
202
198
203
Some features of the generated HTML documentation might require local
You can’t perform that action at this time.
0 commit comments