about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMichael Howell <michael@notriddle.com>2023-10-06 07:58:11 -0700
committerMichael Howell <michael@notriddle.com>2023-10-22 15:56:15 -0700
commitd8afa673ccbcdd4f8f947e4f7eda8d1839bed277 (patch)
treec03b75fb348227f1e9a9f84157f3380fd2818722
parentfa10e4d667aea7ca869eb53f9af925a5fa120c84 (diff)
downloadrust-d8afa673ccbcdd4f8f947e4f7eda8d1839bed277.tar.gz
rust-d8afa673ccbcdd4f8f947e4f7eda8d1839bed277.zip
rustdoc: remove as_ref from method sidebar test
I fixed this in the code, but forgot to fix it in the test.
-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 //