about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--tests/rustdoc-gui/type-impls.goml11
1 files changed, 5 insertions, 6 deletions
diff --git a/tests/rustdoc-gui/type-impls.goml b/tests/rustdoc-gui/type-impls.goml
index c7c9f54cad6..cc18b5de475 100644
--- a/tests/rustdoc-gui/type-impls.goml
+++ b/tests/rustdoc-gui/type-impls.goml
@@ -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 //