Skip to content

Commit 0918348

Browse files
Rollup merge of #85507 - GuillaumeGomez:extend-escape-key-check, r=jsha
Extend escape key check Since #84462 has been merged, we can now extend the `escape-key` test. r? `@jsha`
2 parents 67d5435 + 792d4cf commit 0918348

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

src/test/rustdoc-gui/escape-key.goml

+10-3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ assert: ("#help", "class", "hidden")
2222
assert: ("#search", "class", "content")
2323
assert: ("#main", "class", "content hidden")
2424

25-
// FIXME: Once https://github.com/rust-lang/rust/pull/84462 is merged, add check to ensure
26-
// that Escape hides the search results when a result is focused.
27-
// press-key: "ArrowDown"
25+
// Check that Escape hides the search results when a search result is focused.
26+
focus: ".search-input"
27+
assert: ".search-input:focus"
28+
press-key: "ArrowDown"
29+
assert-false: ".search-input:focus"
30+
assert: "#results a:focus"
31+
press-key: "Escape"
32+
assert: ("#help", "class", "hidden")
33+
assert: ("#search", "class", "content hidden")
34+
assert: ("#main", "class", "content")

0 commit comments

Comments
 (0)