about summary refs log tree commit diff
path: root/src/test/rustdoc-gui/search-result-display.goml
AgeCommit message (Collapse)AuthorLines
2023-01-11Move /src/test to /testsAlbert Larsan-78/+0
2023-01-06Use new block syntax for define-function in goml scriptsGuillaume Gomez-11/+11
2022-11-23rustdoc: simplify `.search-results-title` CSSMichael Howell-1/+2
By using `display: flex`, we still get the never-wrapping layout with `#crate-search-div` maxing out and truncating its text. The title itself winds up always filling its parent, but since `#crate-search` doesn't have `flex-grow` set, it won't fill available space.
2022-11-09Extend crate-search div GUI testsGuillaume Gomez-0/+40
2022-11-04rustdoc: simplify search results CSS and DOMMichael Howell-1/+1
There is a layout change caused by this commit, but it's subtle. You won't notice it unless you're looking for it.
2022-10-07Update rustdoc-gui test to new browser-ui-test versionGuillaume Gomez-1/+1
2022-09-23rustdoc: fix GUI tests to deal with slightly changed widthMichael Howell-1/+1
2022-09-12rustdoc: remove no-op CSS `.search-results .result-name > span`Michael Howell-0/+3
The rule `display: inline-block` was added in 5afa52bc7dee683f25f437dddf338dbc6ad32eb8. The `margin: 0` and `font-weight: normal` were added in c01bd560e2f87a9a960ed071213edd70f73171a8. Both seem to have been added to override class-based rules that were targetted at method sections. See <https://github.com/rust-lang/rust/blob/c01bd560e2f87a9a960ed071213edd70f73171a8/src/librustdoc/html/static/rustdoc.css#L140-L148> for an example. The selectors that these were meant to override were changed in a8318e420d19c364b1eec33956a86164941f6df4 and 76a3b609d0b93c5d8da5e4e3db37bd03e5cb1c30 to be more specific, so they no longer need to be overridden.
2022-09-09rustdoc: update test casesMichael Howell-2/+2
Width changed by 2/4 pixels by b273c7502e363baeec293b972f671070e80f1391
2022-08-10Update GUI testGuillaume Gomez-32/+14
2022-08-10Improve crate selection on rustdoc search results pageFrank Steffahn-16/+26
Resolves all of issue #93240 Reproduces a similar change as #99086, but with improvements In particular, this PR inlcludes: * redesigning the crate-search selector so the background color matches its surroundings * decrease the font of the dropdown menu to a reaonable size * add a hover effect * make the color of the arrow theme-dependent, using a surrounding div, with :after pseudo-element that can then be transformed using CSS filters to approximate the desired color * fix the text "in" to match the title font * remove the "for xyz" in the "Results for xyz in [All crates]" title when searching for search term "xyz"; you can already see what you're searching for as it's typed in the search bar! * in line with #99086, handle super-long crate names appropriately without a long <select> element escaping the screen area; the improvement is that we also keep the title within a single line now; uses some flex layout shenanigans... * the margins / paddings are adjusted so the selected label of the <select> fits within the rest of that title nicely; also some inconsistency in the way that Firefox renders a <select> with "appearance: none" (roughly 4px more padding left and right of the text than e.g. Chrome) is worked around, and it now produces a result that looks (essentially) identical to Chrome * the color of the help menu and settings menu border in light theme is made to match with the color of the corresponding buttons, like they do (match) in the ayu theme * the casing of "All crates" changes to "all crates" * the new tests from #99086 are temporarily disabled, until they can be adapted later
2022-07-20Add GUI tests for search input border colorGuillaume Gomez-1/+1
2022-07-16Fix flakyness of GUI testsGuillaume Gomez-0/+2
2022-07-09Add GUI test for search result crate filter dropdownGuillaume Gomez-0/+28
2022-03-30Fix last rustdoc-gui spurious testGuillaume Gomez-2/+1
2022-01-21Add missing GUI test explanationsGuillaume Gomez-0/+1
2022-01-18Simplify and unify rustdoc sidebar stylesJacob Hoffman-Andrews-1/+1
This switches to just use size, weight, and spacing to distinguish headings in the sidebar. We no longer use boxes, horizontal bars, or centering to distinguish headings. This makes it much easier to understand the hierarchy of headings, and reduces visual noise. I also refactored how the mobile topbar works. Previously, we tried to shift around elements from the sidebar to make the topbar. Now, the topbar gets its own elements, which can be styled on their own. This makes styling and reasoning about those elements simpler. Because the heading font sizes are bigger, increase the sidebar width slightly. As a very minor change, removed version from the "All types" page. It's now only on the crate page.
2021-06-19Update browser-ui-test versionGuillaume Gomez-2/+2
2021-05-22Add test for search result resize widthGuillaume Gomez-0/+12