2022-01-21 20:41:47 +01:00
|
|
|
// Checks that the search results have the expected width.
|
2021-05-22 16:41:26 +02:00
|
|
|
goto: file://|DOC_PATH|/test_docs/index.html
|
|
|
|
size: (900, 1000)
|
|
|
|
write: (".search-input", "test")
|
2022-03-30 14:30:46 +02:00
|
|
|
wait-for: "#search-settings"
|
2021-05-22 16:41:26 +02:00
|
|
|
// The width is returned by "getComputedStyle" which returns the exact number instead of the
|
|
|
|
// CSS rule which is "50%"...
|
Simplify and unify rustdoc sidebar styles
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.
2022-01-06 19:48:24 -05:00
|
|
|
assert-css: (".search-results div.desc", {"width": "295px"})
|
2021-05-22 16:41:26 +02:00
|
|
|
size: (600, 100)
|
|
|
|
// As counter-intuitive as it may seem, in this width, the width is "100%", which is why
|
|
|
|
// when computed it's larger.
|
2021-06-19 12:56:55 +02:00
|
|
|
assert-css: (".search-results div.desc", {"width": "570px"})
|