forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add GUI regression test for rust-lang#130622
- Loading branch information
1 parent
9e3e517
commit eed861e
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
// This test ensures that the documentation list markers are correctly placed. | ||
// It also serves as a regression test for <https://github.com/rust-lang/rust/issues/130622>. | ||
|
||
go-to: "file://" + |DOC_PATH| + "/test_docs/long_list/index.html" | ||
show-text: true | ||
define-function: ( | ||
"check_pos", | ||
[nb], | ||
block { | ||
compare-elements-position: ( | ||
".top-doc .docblock ul li:nth-child(" + |nb| + ")", | ||
".top-doc .docblock ul li:nth-child(" + |nb| + ")::marker", | ||
["y"], | ||
) | ||
}, | ||
) | ||
|
||
call-function: ("check_pos", {"nb": 1}) | ||
call-function: ("check_pos", {"nb": 2}) | ||
call-function: ("check_pos", {"nb": 3}) | ||
call-function: ("check_pos", {"nb": 4}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters