Skip to content

Commit

Permalink
Rollup merge of #85507 - GuillaumeGomez:extend-escape-key-check, r=jsha
Browse files Browse the repository at this point in the history
Extend escape key check

Since #84462 has been merged, we can now extend the `escape-key` test.

r? `@jsha`
  • Loading branch information
GuillaumeGomez authored May 20, 2021
2 parents 67d5435 + 792d4cf commit 0918348
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions src/test/rustdoc-gui/escape-key.goml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,13 @@ assert: ("#help", "class", "hidden")
assert: ("#search", "class", "content")
assert: ("#main", "class", "content hidden")

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

0 comments on commit 0918348

Please sign in to comment.