]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/search-result-display.goml
Rollup merge of #95470 - GuillaumeGomez:fix-gui-spurious-test, r=notriddle
[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 wait-for: "#search-settings"
6 // The width is returned by "getComputedStyle" which returns the exact number instead of the
7 // CSS rule which is "50%"...
8 assert-css: (".search-results div.desc", {"width": "295px"})
9 size: (600, 100)
10 // As counter-intuitive as it may seem, in this width, the width is "100%", which is why
11 // when computed it's larger.
12 assert-css: (".search-results div.desc", {"width": "570px"})