]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/search-result-display.goml
Merge commit '57b3c4b90f4346b3990c1be387c3b3ca7b78412c' into clippyup
[rust.git] / src / test / rustdoc-gui / search-result-display.goml
1 // Checks that the search results have the expected width.
2 goto: file://|DOC_PATH|/test_docs/index.html
3 size: (900, 1000)
4 write: (".search-input", "test")
5 // Waiting for the search results to appear...
6 wait-for: "#titles"
7 // The width is returned by "getComputedStyle" which returns the exact number instead of the
8 // CSS rule which is "50%"...
9 assert-css: (".search-results div.desc", {"width": "295px"})
10 size: (600, 100)
11 // As counter-intuitive as it may seem, in this width, the width is "100%", which is why
12 // when computed it's larger.
13 assert-css: (".search-results div.desc", {"width": "570px"})