diff options
| author | Michael Howell <michael@notriddle.com> | 2023-03-21 10:38:24 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2023-09-21 15:16:44 -0700 |
| commit | 20b93b951aaa75bd32ec1c1c63eac5dbccc35156 (patch) | |
| tree | 5c22422dc0f065d4216b2aef97fe2098c36dbba2 /tests/rustdoc-gui | |
| parent | 3583e86674749c279e7edd96641255bbf8595de1 (diff) | |
| download | rust-20b93b951aaa75bd32ec1c1c63eac5dbccc35156.tar.gz rust-20b93b951aaa75bd32ec1c1c63eac5dbccc35156.zip | |
rustdoc: wait for section to open before trying to highlight
This fixes a problem where hash rewriting doesn't work with `:target` CSS rules.
Diffstat (limited to 'tests/rustdoc-gui')
| -rw-r--r-- | tests/rustdoc-gui/search-result-impl-disambiguation.goml | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/rustdoc-gui/search-result-impl-disambiguation.goml b/tests/rustdoc-gui/search-result-impl-disambiguation.goml index 98a2cd95773..1596a3c4c6e 100644 --- a/tests/rustdoc-gui/search-result-impl-disambiguation.goml +++ b/tests/rustdoc-gui/search-result-impl-disambiguation.goml @@ -20,6 +20,7 @@ wait-for: "#impl-ZyxwvutMethodDisambiguation" assert-document-property: ({ "URL": "struct.ZyxwvutMethodDisambiguation.html#method.method_impl_disambiguation" }, ENDS_WITH) +assert: "section:target" goto: "file://" + |DOC_PATH| + "/test_docs/index.html" @@ -39,3 +40,4 @@ wait-for: "#impl-ZyxwvutMethodDisambiguation" assert-document-property: ({ "URL": "struct.ZyxwvutMethodDisambiguation.html#method.method_impl_disambiguation-1" }, ENDS_WITH) +assert: "section:target" |
