about summary refs log tree commit diff
path: root/src/test/rustdoc-gui
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-6525/+0
2023-01-10Add GUI test for item declaration block scrollingGuillaume Gomez-0/+173
2023-01-08Fix tidy issues in goml scriptsGuillaume Gomez-14/+34
2023-01-06Rollup merge of #106543 - notriddle:notriddle/source-sidebar-width-zero, ↵Michael Goulet-6/+6
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-6/+6
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-591/+573
2023-01-05Auto merge of #106487 - GuillaumeGomez:fix-kbd-var, r=notriddlebors-1/+1
Fix --kbd-color variable name in rustdoc.css Interestingly enough, it only impacted the dark theme. Before: ![Screenshot from 2023-01-05 11-03-17](https://user-images.githubusercontent.com/3050060/210754145-c3bb0f50-d35f-4543-bf73-010a4524a803.png) After: ![Screenshot from 2023-01-05 11-03-05](https://user-images.githubusercontent.com/3050060/210754190-85c2f146-a774-4463-9cd3-9495b7c91bd7.png) r? `@notriddle`
2023-01-05Update kbd GUI testGuillaume Gomez-1/+1
2023-01-04Rollup merge of #106437 - notriddle:notriddle/http-url, r=GuillaumeGomezMatthias Krüger-2/+32
rustdoc: fix buggy JS check for absolute URL The old code did the wrong thing when faced with a crate named "http".
2023-01-03Add hardcoded wait time for external navigation to loadArdis Lu-0/+1
2023-01-03Add test case to click popover child linkArdis Lu-0/+8
2023-01-03rustdoc: fix buggy JS check for absolute URLMichael Howell-2/+32
The old code did the wrong thing when faced with a crate named "http".
2023-01-02Auto merge of #106301 - notriddle:notriddle/dir-entry, r=GuillaumeGomezbors-4/+85
rustdoc: use the regular arrow indicator for dir-entry CSS This mostly reverts 468acca108e65101b802821bded17149dc1d86c9, while still fixing the problem it fixed by using an internal list-style-position. It results in a slight change in the hover indicator, but nothing misleading. Preview: http://notriddle.com/notriddle-rustdoc-demos/dir-entry/src/std/lib.rs.html ## Before ![image](https://user-images.githubusercontent.com/1593513/210104247-642e6df0-07d3-452a-a2ab-4c700bc22e0e.png) ## After ![image](https://user-images.githubusercontent.com/1593513/210104271-a3832784-1e4d-4516-983e-6ecb9051857b.png)
2023-01-01rustdoc: add test case for dir entry summary positionMichael Howell-4/+85
2023-01-01Auto merge of #106350 - GuillaumeGomez:gui-test-explanation-2, r=notriddlebors-0/+1
Add comment explaining what docblock-table GUI test is about r? `@notriddle`
2023-01-01Add comment explaining what docblock-table GUI test is aboutGuillaume Gomez-0/+1
2022-12-31Rollup merge of #106328 - GuillaumeGomez:gui-test-explanation, r=notriddleMatthias Krüger-0/+1
Add comment explaining what the GUI scrape-examples-fonts test is about r? `@notriddle`
2022-12-31Add comment explaining what the GUI scrape-examples-fonts test is aboutGuillaume Gomez-0/+1
2022-12-30Rollup merge of #106295 - ↵Michael Goulet-0/+14
GuillaumeGomez:extend-scraped-examples-layout-test, r=notriddle Extend scraped examples layout GUI test for position of buttons This is a regression test for https://github.com/rust-lang/rust/pull/106279. r? ````@notriddle````
2022-12-30Extend scraped examples layout GUI test for position of buttonsGuillaume Gomez-0/+14
2022-12-30Auto merge of #106262 - GuillaumeGomez:migrate-more-scraped-examples-css, ↵bors-1/+27
r=notriddle Migrate more scraped examples CSS rules to CSS variables It's based on https://github.com/rust-lang/rust/pull/106218 so it will need to wait for it to be merged first. r? `@notriddle`
2022-12-29Rollup merge of #106218 - GuillaumeGomez:migrate-css-var-scraped-examples, ↵Matthias Krüger-0/+34
r=notriddle Migrate css var scraped examples r? ``@notriddle``
2022-12-29Rollup merge of #106217 - notriddle:notriddle/tooltip-center, r=GuillaumeGomezMatthias Krüger-3/+0
rustdoc: remove unnecessary `.tooltip::after { text-align: center }` This doesn't have an effect, since these tooltip are only one line anyway.
2022-12-29Extend rustdoc GUI test for scraped examplesGuillaume Gomez-1/+27
2022-12-28rustdoc: remove unnecessary `.tooltip::after { text-align: center }`Michael Howell-3/+0
This doesn't have an effect, since these tooltip are only one line anyway.
2022-12-28Add GUI test for scraped examples colorsGuillaume Gomez-0/+34
2022-12-27rustdoc: combine common sidebar background color CSS rulesMichael Howell-1/+90
2022-12-26Add GUI test for search tab headersGuillaume Gomez-0/+76
2022-12-25Migrate links-color.goml to functionsGuillaume Gomez-74/+87
2022-12-24Auto merge of #106110 - GuillaumeGomez:toggle-line-background, r=notriddlebors-4/+40
Migrate toggle-line-inner background to CSS variable r? `@notriddle`
2022-12-24Extend GUI test for toggle-line backgroundGuillaume Gomez-4/+40
2022-12-23rustdoc: make line number CSS for doc comment and scraped the sameMichael Howell-14/+44
Discussed in https://rust-lang.zulipchat.com/#narrow/stream/266220-rustdoc/topic/Line.20number.20styling
2022-12-22rustdoc: fix race condition in GUI testMichael Howell-0/+1
2022-12-22rustdoc: use a more evocative name for CSS/JS `#titles`Michael Howell-39/+39
This renames the ID, which is only used in search results, to `#search-tabs`. Also changes the `.count` to a span, so it doesn't need its display mode to be overridden.
2022-12-22Rollup merge of #106035 - ↵Matthias Krüger-0/+15
GuillaumeGomez:migrate-css-var-search-tab-title-color, r=notriddle Migrate search tab title color to CSS variable r? ```@notriddle```
2022-12-22Rollup merge of #106027 - notriddle:notriddle/more-scraped-examples-inner, ↵Matthias Krüger-5/+5
r=GuillaumeGomez rustdoc: simplify CSS and DOM for more-scraped-examples This gets rid of the more-scraped-examples-inner wrapper, instead nesting the children directly and using absolute positioning for the toggle line.
2022-12-22Extend search GUI test to include search tab title color checkGuillaume Gomez-0/+15
2022-12-21rustdoc: simplify CSS and DOM for more-scraped-examplesMichael Howell-5/+5
This gets rid of the more-scraped-examples-inner wrapper, instead nesting the children directly and using absolute positioning for the toggle line.
2022-12-22Rollup merge of #106014 - ↵Yuki Okushi-0/+1
GuillaumeGomez:add-gui-explanations-scrape-examples-toggle, r=notriddle Add comment explaining what the scrape-examples-toggle.goml GUI test is about r? `@notriddle`
2022-12-21Add comment explaining what the scrape-examples-toggle.goml GUI test is aboutGuillaume Gomez-0/+1
2022-12-20Rollup merge of #105964 - notriddle:notriddle/scraped-example-length, ↵Matthias Krüger-2/+107
r=GuillaumeGomez rustdoc: prevent CSS layout of line numbers shrinking into nothing Before: ![image](https://user-images.githubusercontent.com/1593513/208730117-039442b4-01ee-4eee-8001-26429f9d54c3.png) After: ![image](https://user-images.githubusercontent.com/1593513/208730167-ab2f95a9-1eea-48f9-a9c9-3a69d9db484a.png)
2022-12-20rustdoc: prevent CSS layout of line numbers shrinking into nothingMichael Howell-2/+107
2022-12-20Rollup merge of #105939 - GuillaumeGomez:improve-description-gui-test, ↵Matthias Krüger-1/+1
r=Dylan-DPC Improve description of struct-fields GUI test I moved the comment at the top of the file and clarified it a little bit. r? `@notriddle`
2022-12-20Improve description of struct-fields GUI testGuillaume Gomez-1/+1
2022-12-19rustdoc: force pre tags to have the default line heightMichael Howell-0/+24
Fixes #105906
2022-12-16Rollup merge of #105764 - notriddle:notriddle/src-sidebar-toggle, ↵Matthias Krüger-26/+26
r=GuillaumeGomez rustdoc: name the source page sidebar-toggle `#src-sidebar-toggle` The old name doesn't get across where it's really supposed to be used.
2022-12-15rustdoc: name the source page sidebar-toggle `#src-sidebar-toggle`Michael Howell-26/+26
The old name doesn't get across where it's really supposed to be used.
2022-12-15rustdoc: simplify CSS for codeblock tooltipsMichael Howell-3/+3
Instead of making its parts `display: none` and then changing it on hover, just make the pseudo-element itself on hover.
2022-12-14rustdoc: remove unnecessary CSS `kbd { cursor: default }`Michael Howell-1/+0
Added along with theme picker changes in e78f1392b79779fa184f9a63e7be04ac7074a1c2, but no reason seems to have been given at the time for why this particular rule was added. Removing this rule results in `<kbd>` elements getting an I-bar, while the rule causes them to use the "default" arrow, but since selecting the text in these elements works fine, the I-bar is not misleading.
2022-12-14Rollup merge of #105676 - notriddle:notriddle/impl-docblock, r=GuillaumeGomezMatthias Krüger-0/+17
rustdoc: add CSS margin between `impl` docblock and its items ## Before ![image](https://user-images.githubusercontent.com/1593513/207471025-c27c298b-4d48-461b-918b-a965b09db4f1.png) ## After ![image](https://user-images.githubusercontent.com/1593513/207471759-1bbabf71-0932-441c-b044-ad0e392ba552.png)