]> git.lizzy.rs Git - rust.git/blob - tests/rustdoc-gui/trait-sidebar-item-order.goml
Auto merge of #107618 - chriswailes:linker-arg, r=albertlarsan68
[rust.git] / tests / rustdoc-gui / trait-sidebar-item-order.goml
1 // Checks that the elements in the sidebar are alphabetically sorted.
2
3 // We need to disable this check because `implementors/test_docs/trait.AnotherOne.js`
4 // doesn't exist.
5 fail-on-request-error: false
6
7 goto: "file://" + |DOC_PATH| + "/test_docs/trait.AnotherOne.html"
8 assert-text: (".sidebar-elems section .block li:nth-of-type(1) > a", "another")
9 assert-text: (".sidebar-elems section .block li:nth-of-type(2) > a", "func1")
10 assert-text: (".sidebar-elems section .block li:nth-of-type(3) > a", "func2")
11 assert-text: (".sidebar-elems section .block li:nth-of-type(4) > a", "func3")
12 assert-text: (".sidebar-elems section .block li:nth-of-type(5) > a", "hello")
13 assert-text: (".sidebar-elems section .block li:nth-of-type(6) > a", "why_not")