about summary refs log tree commit diff
path: root/src/test/rustdoc/manual_impl.rs
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-77/+0
2021-05-30Remove toggle for "undocumented items."Jacob Hoffman-Andrews-15/+7
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.
2021-05-22Fix auto-hide for implementations and implementors.Jacob Hoffman-Andrews-1/+2
This sets their toggles to be closed in the HTML (matching the default setting), and opens them if the setting indicates to do so. This distinguishes between implementations and implementors based on being descendants of certain named elements.
2021-05-02Update testsGuillaume Gomez-9/+14
2019-07-16Update testsGuillaume Gomez-4/+4
2018-12-25Remove licensesMark Rousskov-10/+0
2018-11-03Rollup merge of #54162 - GuillaumeGomez:hide-default-impls-items, ↵Guillaume Gomez-1/+1
r=QuietMisdreavus Hide default impls items Follow up of #51885. Fixes #54025. cc @Mark-Simulacrum r? @QuietMisdreavus And screenshots of course: <img width="1440" alt="screen shot 2018-09-12 at 23 30 35" src="https://user-images.githubusercontent.com/3050060/45454424-1ff8d500-b6e4-11e8-9257-030322495d58.png"> <img width="1440" alt="screen shot 2018-09-12 at 23 30 42" src="https://user-images.githubusercontent.com/3050060/45454431-2424f280-b6e4-11e8-8d65-db0d85ac18f0.png">
2018-10-22Fix multiple errorsGuillaume Gomez-1/+1
2018-10-05Remove duplicate test linePhilip Munksgaard-1/+0
2018-07-22Add new tests and fix old onesGuillaume Gomez-1/+0
2016-05-20Update testsManish Goregaokar-6/+19
2016-04-15Add flag for whether an item is default or not.pierzchalski-0/+4
We don't want to render default item docs but previously `doctraititem` naively delegated to the trait definition in those cases. Updated tests to also check that this doesn't strip default item docs from the trait definition.
2016-04-15Add tests against weird provided/required method behaviourpierzchalski-7/+55
In `test/rustdoc/manual_impl.rs` there are now three structs: * S1 implements and documents required method `a_method`. * S2 implements and documents `a_method` as well as provided method `b_method`. * S3 implements `a_method` and `b_method`, but only documents `b_method`. For a struct, we want the rendered trait impls to include documentation if and only if it appears on the trait implementation itself (since users can just go to the trait definition for anything not covered in the impl docs). This means we expect: * S1, S2, and S3 to all include top-level trait impl docs. * S1, S2, and S3 to exclude all trait definition docs. * S1 to show impl docs for `a_method`. * S2 to show impl docs for `a_method` and `b_method`. * S3 to show impl docs for `b_method`. These tests cover those cases.
2016-04-14Delegate whether to print docblocks to 'document'pierzchalski-0/+26
Add test to check this resolves #24838 and #26871.