Skip to content

Commit 49b948a

Browse files
authored
rustdoc: remove as_ref from method sidebar test
I fixed this in the code, but forgot to fix it in the test.
1 parent 8ab73e5 commit 49b948a

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tests/rustdoc-gui/type-impls.goml

+5-6
Original file line numberDiff line numberDiff line change
@@ -6,24 +6,23 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/type.SomeOtherTypeWithMethodsAndInli
66
wait-for: "//*[@id='method.some_other_method_directly']"
77

88
// methods on foo
9+
assert: "//*[@id='method.as_ref']"
910
assert: "//*[@id='method.must_use']"
1011
assert: "//*[@id='method.warning1']"
1112
assert: "//*[@id='method.warning2']"
1213

1314
// sidebar items
14-
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.as_ref']"
1515
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.must_use']"
1616
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.some_other_method_directly']"
1717
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning1']"
1818
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning2']"
1919
assert: "//*[@class='sidebar-elems']//li/a[@href='#impl-AsRef%3Cstr%3E-for-Foo']"
2020

2121
// sorting
22-
assert-text: (".block.method li:nth-child(1)", 'as_ref')
23-
assert-text: (".block.method li:nth-child(2)", 'must_use')
24-
assert-text: (".block.method li:nth-child(3)", 'some_other_method_directly')
25-
assert-text: (".block.method li:nth-child(4)", 'warning1')
26-
assert-text: (".block.method li:nth-child(5)", 'warning2')
22+
assert-text: (".block.method li:nth-child(1)", 'must_use')
23+
assert-text: (".block.method li:nth-child(2)", 'some_other_method_directly')
24+
assert-text: (".block.method li:nth-child(3)", 'warning1')
25+
assert-text: (".block.method li:nth-child(4)", 'warning2')
2726

2827
///////////////////////////////////////////////////////////////////////////
2928
// Now, if JavaScript is disabled, only the first method will be present //

0 commit comments

Comments
 (0)