rustdoc: remove as_ref from method sidebar test
I fixed this in the code, but forgot to fix it in the test.
This commit is contained in:
parent
fa10e4d667
commit
d8afa673cc
1 changed files with 5 additions and 6 deletions
|
@ -6,12 +6,12 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/type.SomeOtherTypeWithMethodsAndInli
|
|||
wait-for: "//*[@id='method.some_other_method_directly']"
|
||||
|
||||
// methods on foo
|
||||
assert: "//*[@id='method.as_ref']"
|
||||
assert: "//*[@id='method.must_use']"
|
||||
assert: "//*[@id='method.warning1']"
|
||||
assert: "//*[@id='method.warning2']"
|
||||
|
||||
// sidebar items
|
||||
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.as_ref']"
|
||||
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.must_use']"
|
||||
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.some_other_method_directly']"
|
||||
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning1']"
|
||||
|
@ -19,11 +19,10 @@ assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning2']"
|
|||
assert: "//*[@class='sidebar-elems']//li/a[@href='#impl-AsRef%3Cstr%3E-for-Foo']"
|
||||
|
||||
// sorting
|
||||
assert-text: (".block.method li:nth-child(1)", 'as_ref')
|
||||
assert-text: (".block.method li:nth-child(2)", 'must_use')
|
||||
assert-text: (".block.method li:nth-child(3)", 'some_other_method_directly')
|
||||
assert-text: (".block.method li:nth-child(4)", 'warning1')
|
||||
assert-text: (".block.method li:nth-child(5)", 'warning2')
|
||||
assert-text: (".block.method li:nth-child(1)", 'must_use')
|
||||
assert-text: (".block.method li:nth-child(2)", 'some_other_method_directly')
|
||||
assert-text: (".block.method li:nth-child(3)", 'warning1')
|
||||
assert-text: (".block.method li:nth-child(4)", 'warning2')
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////
|
||||
// Now, if JavaScript is disabled, only the first method will be present //
|
||||
|
|
Loading…
Add table
Reference in a new issue