]> git.lizzy.rs Git - rust.git/blob - src/test/rustdoc-gui/trait-sidebar-item-order.goml
Merge commit 'f4850f7292efa33759b4f7f9b7621268979e9914' into clippyup
[rust.git] / src / test / 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")