about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/sidebar-source-code-display.goml
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-215/+0
2023-01-06Rollup merge of #106543 - notriddle:notriddle/source-sidebar-width-zero, ↵Michael Goulet-3/+3
r=GuillaumeGomez rustdoc: remove no-op CSS `.rustdoc.source .sidebar { width: 0 }` This CSS was added in dc2c9723343c985740be09919236a6e96c4e4433, before 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c when the sidebars were merged. Now that they are merged, the source sidebar is being pushed off-screen anyway, so giving it zero width doesn't do much.
2023-01-06rustdoc: remove no-op CSS `.rustdoc.source .sidebar { width: 0 }`Michael Howell-3/+3
This CSS was added in dc2c9723343c985740be09919236a6e96c4e4433, before 6a5f8b1aef1417d7dc85b5d0a229d2db1930eb7c when the sidebars were merged. Now that they are merged, the source sidebar is being pushed off-screen anyway, so giving it zero width doesn't do much.
2023-01-06Use new block syntax for define-function in goml scriptsGuillaume Gomez-42/+42
2022-12-15rustdoc: name the source page sidebar-toggle `#src-sidebar-toggle`Michael Howell-22/+22
The old name doesn't get across where it's really supposed to be used.
2022-11-24Strenghten GUI test to include extra state in selectorGuillaume Gomez-6/+12
2022-11-24Extend GUI test to include more source code elements checksGuillaume Gomez-2/+24
2022-11-17Migrate GUI test to use functionsGuillaume Gomez-162/+87
2022-10-24rustdoc: remove unused `.sidebar-logo` DOM on source pagesMichael Howell-1/+1
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-3/+3
2022-09-29rustdoc: update test case now that the UI animation is removedMichael Howell-11/+8
2022-09-11Update tests for new browser-ui-test versionGuillaume Gomez-3/+3
2022-07-05rustdoc: improve scroll locking in the rustdoc mobile sidebarsMichael Howell-0/+11
This commit ports the scroll locking behavior from the source sidebar to the regular sidebar, and also fixes some bad behavior where opening a "mobile" sidebar, and growing the viewport so that the "desktop" mode without scroll locking is activated, could potentially leave the page stuck. This does not affect the behavior on larger screens. Only small ones, where the sidebar covers up the main content.
2022-07-05Rollup merge of #98776 - notriddle:notriddle/mobile-sidebar-auto-close, ↵Dylan DPC-0/+31
r=GuillaumeGomez rustdoc: improve click behavior of the source code mobile full-screen "sidebar" On desktop, if you open the source code sidebar, it stays open even when you move from page to page. It used to do the same thing on mobile, but I think that's stupid. Since the file list fills the entire screen on mobile, and you can't really do anything with the currently selected file other than dismiss the "sidebar" to look at it, it's safe to assume that anybody who clicks a file in that list probably wants the list to go away so they can see it. Split out separately from #98772
2022-07-04Rollup merge of #98774 - notriddle:notriddle/source-code-sidebar-button, ↵Matthias Krüger-0/+27
r=GuillaumeGomez rustdoc: make source sidebar toggle a real button This fixes tab focus, so that you can open and close the sidebar from keyboard. This should cause no visible change in appearance at all. The only way you'd know anything different is if you tried to use keyboard controls to open the source code file navigation sidebar. Separated out from #98772
2022-07-02rustdoc: add gui test case ensuring source sidebar doesn't spontaneously openMichael Howell-1/+10
2022-07-02rustdoc: add test case for background color of the sidebar toggle buttonMichael Howell-0/+27
2022-07-01rustdoc: add test cases for :focus on sidebar details elementsMichael Howell-0/+42
2022-07-01Improve click behavior of the source code mobile full-screen "sidebar"Michael Howell-0/+22
On desktop, if you open the source code sidebar, it stays open even when you move from page to page. It used to do the same thing on mobile, but I think that's stupid. Since the file list fills the entire screen on mobile, and you can't really do anything with the currently selected file other than dismiss the "sidebar" to look at it, it's safe to assume that anybody who clicks a file in that list probably wants the list to go away so they can see it.
2022-07-01rustdoc: use <details> tag for the source code sidebarMichael Howell-21/+21
This fixes the extremely poor accessibility of the old system, making it possible to navigate the sidebar by keyboard, and also implicitly gives the sidebar items the correct ARIA roles.
2022-06-30Add test to ensure that scroll position is kept when opening/closing source ↵Guillaume Gomez-0/+14
sidebar
2022-06-29Add test for source sidebar toggleGuillaume Gomez-1/+13
2022-06-29Update/add tests for source sidebar in mobile modeGuillaume Gomez-0/+10
2022-06-25Add test for source sidebar elements colorsGuillaume Gomez-0/+99
2022-05-10Clean up rustdoc GUI testGuillaume Gomez-2/+1
2022-03-25Replace wait-for instructions for rustdoc GUI tests with wait-for-cssGuillaume Gomez-4/+2
2022-02-24Add test for source sidebar elements displayGuillaume Gomez-0/+22