Skip to content

Commit

Permalink
Add GUI test to ensure that line numbers text is aligned to the right
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Mar 7, 2022
1 parent e89efb8 commit f23d6d3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/test/rustdoc-gui/source-code-page.goml
Expand Up @@ -14,3 +14,6 @@ assert-attribute: (".line-numbers > span:nth-child(6)", {"class": "line-highligh
assert-attribute-false: (".line-numbers > span:nth-child(7)", {"class": "line-highlighted"})
// This is to ensure that the content is correctly align with the line numbers.
compare-elements-position: ("//*[@id='1']", ".rust > code > span", ("y"))

// Assert that the line numbers text is aligned to the right.
assert-css: (".line-numbers", {"text-align": "right"})

0 comments on commit f23d6d3

Please sign in to comment.