about summary refs log tree commit diff
path: root/src/test/rustdoc/toggle-item-contents.rs
AgeCommit message (Collapse)AuthorLines
2021-07-26Add test for enum item tuple fields documentationGuillaume Gomez-2/+2
2021-07-22Don't hide fields of enum struct variantsNoah Lev-4/+2
* The toggle adds visual clutter * It's easy to miss that there are fields * Tuple variant fields are always shown, so it is inconsistent to hide struct variant fields * It's annoying to have to click the toggle every time
2021-07-11rustdoc: test count of item contents when hiddenWeihang Lo-7/+38
2021-05-30Remove toggle for "undocumented items."Jacob Hoffman-Andrews-0/+156
Per discussion in #84326. For trait implementations, this was misleading: the items actually do have documentation (but it comes from the trait definition). For both trait implementations and trait implementors, this was redundant: in both of those cases, the items are default-hidden by different toggle at the level above. Update tests: Remove XPath selectors that over-specified on details tag, in cases that weren't testing toggles. Add an explicit test for toggles on methods. Rename item-hide-threshold to toggle-item-contents for consistency.