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.
This commit is contained in:
parent
46ccce0803
commit
5f8dc0ddf4
1 changed files with 1 additions and 1 deletions
|
@ -12,4 +12,4 @@
|
|||
|
||||
pub struct Bar;
|
||||
|
||||
// @!has foo/struct.Bar.html '//*[@id="implementations"]'
|
||||
// @count foo/struct.Bar.html '//*[@id="implementations"]' 0
|
||||
|
|
Loading…
Add table
Reference in a new issue