This website requires JavaScript.
Explore
Help
Sign in
mathieu
/
os-rust
Watch
1
Star
0
Fork
You've already forked os-rust
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
Actions
d3ec92e16e
os-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 17:22:08 +01: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 19:08:52 +02:00
// @count foo/struct.Bar.html '//*[@id="implementations"]' 0
Reference in a new issue
Copy permalink