diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-16 20:41:00 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2023-06-16 20:41:00 +0200 |
| commit | ea55d25465f8dffc8283c0260f8dfa42076ba847 (patch) | |
| tree | 75d04add16810e4c7cb62c38786586ee2f9c1334 | |
| parent | f4316392a756eae7f96952bd4ddc37e6449ef926 (diff) | |
| download | rust-ea55d25465f8dffc8283c0260f8dfa42076ba847.tar.gz rust-ea55d25465f8dffc8283c0260f8dfa42076ba847.zip | |
Add regression test for #112676
| -rw-r--r-- | tests/rustdoc-gui/setting-go-to-only-result.goml | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/rustdoc-gui/setting-go-to-only-result.goml b/tests/rustdoc-gui/setting-go-to-only-result.goml index c5720b4bf1a..45e0b349051 100644 --- a/tests/rustdoc-gui/setting-go-to-only-result.goml +++ b/tests/rustdoc-gui/setting-go-to-only-result.goml @@ -34,7 +34,14 @@ go-to: "file://" + |DOC_PATH| + "/lib2/index.html" // We enter it into the search. write: (".search-input", "HasALongTraitWithParams") wait-for-document-property: {"title": "HasALongTraitWithParams in lib2 - Rust"} -assert-document-property: ({"URL": "/lib2/struct.HasALongTraitWithParams.html"}, ENDS_WITH) +assert-window-property: ({"location": "/lib2/struct.HasALongTraitWithParams.html"}, ENDS_WITH) + +// Regression test for <https://github.com/rust-lang/rust/issues/112676>. +// If "go-to-only-result" is enabled and you go back to history, it should not lead you back to the +// page result again automatically. +history-go-back: +wait-for-document-property: {"title": "lib2 - Rust"} +assert-window-property: ({"location": "/lib2/index.html"}, ENDS_WITH) // We try again to see if it goes to the only result go-to: "file://" + |DOC_PATH| + "/lib2/index.html?search=HasALongTraitWithParams" |
