about summary refs log tree commit diff
path: root/src/test/rustdoc-gui
AgeCommit message (Collapse)AuthorLines
2022-10-25Rollup merge of #103486 - ↵Yuki Okushi-52/+89
GuillaumeGomez:cleanup-rustdoc-gui-highlight-colors, r=notriddle Use functions in highlight-colors rustdoc GUI test r? ``@notriddle``
2022-10-24rustdoc: remove unused `.sidebar-logo` DOM on source pagesMichael Howell-1/+1
2022-10-24Use functions in highlight-colors rustdoc GUI testGuillaume Gomez-52/+89
2022-10-23Use functions for jump-to-def-background rustodoc GUI testGuillaume Gomez-38/+17
2022-10-23Rollup merge of #103401 - GuillaumeGomez:gui-test-headings-cleanup, r=notriddleMatthias Krüger-100/+76
Use functions for headings rustdoc GUI test r? ````@notriddle````
2022-10-22Use functions for headings rustodoc GUI testGuillaume Gomez-100/+76
2022-10-21rustdoc: prevent method summary margin from being applied to docblocksMichael Howell-0/+23
2022-10-21Rollup merge of #103321 - notriddle:notriddle/source-page-top-bar-layout, ↵Dylan DPC-8/+30
r=GuillaumeGomez rustdoc: improve appearance of source page navigation bar This commit changes things so that the search bar is exactly centered between the top of the page and the top of the source code content area. Preview: https://notriddle.com/notriddle-rustdoc-demos/source-page-header/src/std/lib.rs.html ## Before ![image](https://user-images.githubusercontent.com/1593513/197053420-02a64627-48ed-4bb6-9363-a1863d47b092.png) ## After ![image](https://user-images.githubusercontent.com/1593513/197053355-bd6149f9-0f5c-47da-aeb7-590b5eecb5da.png)
2022-10-20Rollup merge of #103296 - GuillaumeGomez:collapse-expand-shortcuts, r=notriddleMatthias Krüger-0/+18
+/- shortcut now only expand/collapse, not both Fixes https://github.com/rust-lang/rust/issues/102772. r? ```@notriddle```
2022-10-20rustdoc: improve appearance of source page navigation barMichael Howell-8/+30
This commit changes things so that the search bar is exactly centered between the top of the page and the top of the source code content area.
2022-10-20Add GUI tests for collapse/expand actionsGuillaume Gomez-0/+18
2022-10-20Rollup merge of #103251 - GuillaumeGomez:item-decl-highlighting, r=notriddleMatthias Krüger-5/+98
Fix item declaration highlighting Fixes https://github.com/rust-lang/rust/issues/103050. As mentioned in the issue, https://github.com/rust-lang/rust/pull/102924 introduced this regression. This PR partially reverts it and adds a regression test. r? `@notriddle`
2022-10-19Rollup merge of #103237 - GuillaumeGomez:codeblock-tooltip-cleanup, r=notriddleMatthias Krüger-92/+76
Clean up codeblock-tooltip rustdoc-gui test r? ``@notriddle``
2022-10-19Rollup merge of #103211 - notriddle:notriddle/dot-location, r=GuillaumeGomezMatthias Krüger-10/+18
rustdoc: remove class name `location` from sidebar sibling nav Preview: https://notriddle.com/notriddle-rustdoc-demos/sidebar-location/std/vec/struct.Vec.html This change tweaks the CSS to apply most of its styles to `.sidebar h2`, cleaning up a few redundant rules from `.mobile-topbar .location` and restoring useful navigation aids in mobile mode. ## Before ![location-before](https://user-images.githubusercontent.com/1593513/196521014-d8730830-c3a2-4ed7-9266-05454cd31e05.png) ## After ![location-after](https://user-images.githubusercontent.com/1593513/196521020-75ec1fa5-b3dc-4c5d-97b6-afccb5fbe00a.png)
2022-10-19Add regression test for item-decl highlightingGuillaume Gomez-5/+98
2022-10-19Clean up codeblock-tooltip rustdoc-gui testGuillaume Gomez-92/+76
2022-10-18Rollup merge of #103189 - GuillaumeGomez:clean-up-gui-tests, r=notriddleMatthias Krüger-131/+78
Clean up code-color and headers-color rustdoc GUI tests r? ``@notriddle``
2022-10-18rustdoc: remove class name `location` from sidebar sibling navMichael Howell-10/+18
This change tweaks the CSS to apply most of its styles to `.sidebar h2`, cleaning up a few redundant rules from `.mobile-topbar .location` and restoring useful navigation aids in mobile mode.
2022-10-18Clean up code-color and headers-color rustdoc GUI testsGuillaume Gomez-131/+78
2022-10-17rustdoc: change mobile breakpoint to match CSSMichael Howell-4/+4
Since it's possible to have a 700.5px viewport width, the JS needs to not switch to mobile mode in such a setup.
2022-10-17Rollup merge of #103152 - GuillaumeGomez:named-arguments, r=notriddleMatthias Krüger-27/+27
Use named arguments to make GUI test more clear As you suggested `@notriddle.` The result looks like this. r? `@notriddle`
2022-10-17Use named arguments to make test clearerGuillaume Gomez-27/+27
2022-10-17Rollup merge of #103091 - notriddle:notriddle/sidebar-title, r=GuillaumeGomezMatthias Krüger-1/+1
rustdoc: remove unused HTML class `sidebar-title` Since 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c, this class is no longer styled.
2022-10-16Rollup merge of #103115 - GuillaumeGomez:clean-up-anchors-gui-test, r=notriddleMatthias Krüger-147/+100
Clean up anchors.goml rustdoc GUI test r? ``@notriddle``
2022-10-16Rollup merge of #103060 - notriddle:notridddle/help-page, r=GuillaumeGomezMatthias Krüger-11/+55
rustdoc: make the help button a link to a page This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page. Preview: http://notriddle.com/notriddle-rustdoc-demos/help-page/std/index.html
2022-10-16Clean up anchors.goml rustdoc GUI testGuillaume Gomez-147/+100
2022-10-15rustdoc: add test cases for links inside the help popoverMichael Howell-4/+24
2022-10-15rustdoc: update test cases for `.sidebar-title` -> `.sidebar-elems h3`Michael Howell-1/+1
2022-10-15rustdoc: make the help button a link to a pageMichael Howell-8/+32
This allows you to open the help section in a new browser tab, which is a pretty reasonable thing to want for a documentation page.
2022-10-15Add more GUI tests for settings pageGuillaume Gomez-2/+9
2022-10-14Rollup merge of #103054 - GuillaumeGomez:cleanup-rust-logo-test, r=notriddleMatthias Krüger-70/+26
Clean up rust-logo rustdoc GUI test r? `@notriddle`
2022-10-14Clean up rust-logo rustdoc GUI testGuillaume Gomez-70/+26
2022-10-14Rollup merge of #102914 - ↵Dylan DPC-1/+73
GuillaumeGomez:migrate-css-highlight-without-change, r=notriddle Migrate css highlight without change This is a "previous" version of https://github.com/rust-lang/rust/pull/102663: only migrating to CSS variables, no changes. It's a bit more verbose because rules are not coherent between themes. r? ``@notriddle``
2022-10-13Improve code for unsafe-fn rustdoc GUI testGuillaume Gomez-31/+22
2022-10-11rustdoc: remove unused classes from sidebarMichael Howell-64/+64
Since 98f05a0282625a5fda6e90ebf3b05a4bd7608f65 removed separate colors from the currently-selected item, there's no need to have item classes on sidebar links.
2022-10-11Rollup merge of #102898 - notriddle:notriddle/sidebar-block, r=GuillaumeGomezYuki Okushi-12/+12
rustdoc: remove unneeded `<div>` wrapper from sidebar DOM When this was added, the sidebar had a bit more complex style. It can be removed, now. Preview: https://notriddle.com/notriddle-rustdoc-demos/sidebar-block/std/index.html
2022-10-11Add GUI test for source code pages highlightingGuillaume Gomez-1/+73
2022-10-10rustdoc: remove unneeded `<div>` wrapper from sidebar DOMMichael Howell-12/+12
When this was added, the sidebar had a bit more complex style. It can be removed, now.
2022-10-10Simplify result color checksGuillaume Gomez-710/+233
2022-10-08Rollup merge of #102815 - notriddle:notriddle/mobile-topbar, r=GuillaumeGomezMatthias Krüger-1/+1
rustdoc: remove mobile topbar from source pages instead of hiding it
2022-10-08rustdoc: add test case for dimensions and color of unsafe `<sup>`Michael Howell-0/+41
2022-10-08rustdoc: remove mobile topbar from source pages instead of hiding itMichael Howell-1/+1
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-149/+149
2022-10-05rustdoc: remove unused CSS class `in-band`Michael Howell-13/+13
Since a7c25b29575c17434406b69773f8c2961af343b3 removed `in-band` from code headers, the only remaining uses of the `in-band` class are: https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/render/write_shared.rs#L520-L521 https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/templates/print_item.html#L2-L3 https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/render/context.rs#L637-L638 https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/render/mod.rs#L368-L369 https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/render/mod.rs#L401-L402 https://github.com/rust-lang/rust/blob/02cd79afb8080fce8c8ce35533c54d8ecf8f390e/src/librustdoc/html/static/js/main.js#L525 Since all of these uses are nested below `h1.fqn`, we can get rid of it, and the support code that was used for when `in-band` was part of item rendering.
2022-10-05Add regression test for hamberger button color in mobile sidebarGuillaume Gomez-3/+4
2022-10-03Extend GUI test to check hover and focus on search resultsGuillaume Gomez-44/+597
2022-10-01Auto merge of #102237 - GuillaumeGomez:sidebar-links-color, r=notriddlebors-0/+233
Migrate sidebar links color to CSS variables and unify themes with ayu Part of https://github.com/rust-lang/rust/pull/98460. This PR does two things: 1. Migrate more theme CSS rules toward CSS variables. 2. Remove `a.current` specific colors depending on the kind of the item behind the link. The `ayu` theme was already doing it this way and I think it makes much more sense like this. You can test it [here](https://rustdoc.crud.net/imperio/sidebar-links-color/lib2/struct.Foo.html) by hovering other module's items in the sidebar (or check the selector `a.current`). cc `@jsha` r? `@notriddle`
2022-09-30rustdoc: update test cases for `<section>` tags in traitsMichael Howell-3/+3
2022-09-30rustdoc: add gui test for no-docblock marginsMichael Howell-0/+20
2022-09-30Add GUI test for sidebar links colorGuillaume Gomez-0/+233