This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
4ed8cfc202
rust
/
tests
/
rustdoc
/
unneeded-trait-implementations-title.rs
6 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
Remove unneeded trait implementations titles
2018-03-24 11:22:08 -05:00
#![
crate_name =
"
foo
"
]
pub
struct
Bar
;
Fix unneeded-trait-implementations-title test The `@!has` command does not support specifying just a PATH and an XPATH. That means that the previous test searched for the literal string `//h2[@id="implementations"]` within the generated output, which obviously didn't exist. Even after adding a trait implementation, the test still passed. The correct way to check for the existence of a DOM element with the id `implementations` is to use the `@count` keyword.
2018-10-05 12:08:52 -05:00
// @count foo/struct.Bar.html '//*[@id="implementations"]' 0
Reference in New Issue
Copy Permalink