@@ -6,24 +6,23 @@ go-to: "file://" + |DOC_PATH| + "/test_docs/type.SomeOtherTypeWithMethodsAndInli
6
6
wait-for: "//*[@id='method.some_other_method_directly']"
7
7
8
8
// methods on foo
9
+ assert: "//*[@id='method.as_ref']"
9
10
assert: "//*[@id='method.must_use']"
10
11
assert: "//*[@id='method.warning1']"
11
12
assert: "//*[@id='method.warning2']"
12
13
13
14
// sidebar items
14
- assert: "//*[@class='sidebar-elems']//li/a[@href='#method.as_ref']"
15
15
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.must_use']"
16
16
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.some_other_method_directly']"
17
17
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning1']"
18
18
assert: "//*[@class='sidebar-elems']//li/a[@href='#method.warning2']"
19
19
assert: "//*[@class='sidebar-elems']//li/a[@href='#impl-AsRef%3Cstr%3E-for-Foo']"
20
20
21
21
// 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')
27
26
28
27
///////////////////////////////////////////////////////////////////////////
29
28
// Now, if JavaScript is disabled, only the first method will be present //
0 commit comments