Logo
Explore Help
Register Sign In
rust-lang/rust
1
0
Fork 0
You've already forked rust
Code Issues Pull Requests Actions 2 Packages Projects Releases Wiki Activity
Files
d3ec92e16e7e78c273c0f996cad5122ce5a6cdd6
rust/tests/rustdoc/unneeded-trait-implementations-title.rs

6 lines
102 B
Rust
Raw Normal View History

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 New Issue Copy Permalink
Powered by Gitea Version: 1.24.6 Page: 1115ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API