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:
Philip Munksgaard 2018-10-05 19:08:52 +02:00
parent 46ccce0803
commit 5f8dc0ddf4

View file

@ -12,4 +12,4 @@
pub struct Bar;
// @!has foo/struct.Bar.html '//*[@id="implementations"]'
// @count foo/struct.Bar.html '//*[@id="implementations"]' 0