about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/source-code-page.goml
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-218/+0
2023-01-06Use new block syntax for define-function in goml scriptsGuillaume Gomez-20/+20
2023-01-03rustdoc: fix buggy JS check for absolute URLMichael Howell-1/+1
The old code did the wrong thing when faced with a crate named "http".
2023-01-01rustdoc: add test case for dir entry summary positionMichael Howell-4/+85
2022-12-23rustdoc: make line number CSS for doc comment and scraped the sameMichael Howell-2/+2
Discussed in https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Line.20number.20styling
2022-12-15rustdoc: name the source page sidebar-toggle `#src-sidebar-toggle`Michael Howell-1/+1
The old name doesn't get across where it's really supposed to be used.
2022-11-13Rollup merge of #103650 - notriddle:notriddle/line-anchors, r=GuillaumeGomezYuki Okushi-10/+34
rustdoc: change `.src-line-numbers > span` to `.src-line-numbers > a` Example: https://notriddle.com/notriddle-rustdoc-demos/line-anchors/test_dingus/fn.test.html This allows people to treat them like real links, such as right-click to copy URL, and makes the line numbers in a scraped example work at all, when before this commit was added, they had the clickable pointer cursor but did not actually do anything when clicked.
2022-11-05rustdoc: add test case for huge logoMichael Howell-1/+1
2022-10-31rustdoc: remove left border from `.src-line-numbers > a`Michael Howell-0/+5
2022-10-31rustdoc: change `.src-line-numbers > span` to `.src-line-numbers > a`Michael Howell-10/+29
This allows people to treat them like real links, such as right-click to copy URL, and makes the line numbers in a scraped example work at all, when before this commit was added, they had the clickable pointer cursor but did not actually do anything when clicked.
2022-10-27Add tests for source line numbers colorsGuillaume Gomez-1/+43
2022-10-20rustdoc: improve appearance of source page navigation barMichael Howell-1/+23
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-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-3/+3
2022-09-26rustdoc: give `.line-number` / `.line-numbers` meaningful namesMichael Howell-8/+8
2022-07-02rustdoc: add test case for source sidebar spacingMichael Howell-0/+3
2022-07-01rustdoc: use <details> tag for the source code sidebarMichael Howell-13/+7
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-20rustdoc: optimize loading of source sidebarJacob Hoffman-Andrews-1/+1
The source sidebar has a setting to remember whether it should be open or closed. Previously, this setting was handled in source-script.js, which is loaded with `defer`, meaning it is often run after the document is rendered. Since CSS renders the source sidebar as closed by default, changing this after the initial render results in a relayout. Instead, handle the setting in storage.js, which is the first script to load and is the only script that blocks render. This avoids a relayout and means navigating between files with the sidebar open is faster.
2022-06-14Add GUI test for sidebar items expand/collapseGuillaume Gomez-1/+24
2022-05-30Add line number click GUI testGuillaume Gomez-1/+11
2022-05-30Improve source-code-page.goml GUI test codeGuillaume Gomez-3/+3
2022-03-07Add GUI test to ensure that line numbers text is aligned to the rightGuillaume Gomez-0/+3
2022-01-21Add missing GUI test explanationsGuillaume Gomez-0/+1
2021-12-02Fix remaining bugsGuillaume Gomez-1/+1
2021-11-29rustdoc: fix source-code-page testcynecx-1/+1
2021-08-19[rustdoc] Wrap code blocks in <code> tagJakub Beránek-1/+1
2021-06-22Add check to ensure that the line numbers are aligned with the source codeGuillaume Gomez-0/+2
2021-06-22Update browser-ui-test versionGuillaume Gomez-6/+6
2021-06-19Update browser-ui-test versionGuillaume Gomez-6/+6
2021-05-11Move rustdoc-gui rust libraries into their own folder and prepare the field ↵Guillaume Gomez-2/+2
for more libraries
2021-05-10Add test for source code clickable line numberGuillaume Gomez-0/+13