Skip to content

Commit f23d6d3

Browse files
Add GUI test to ensure that line numbers text is aligned to the right
1 parent e89efb8 commit f23d6d3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/test/rustdoc-gui/source-code-page.goml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,6 @@ assert-attribute: (".line-numbers > span:nth-child(6)", {"class": "line-highligh
1414
assert-attribute-false: (".line-numbers > span:nth-child(7)", {"class": "line-highlighted"})
1515
// This is to ensure that the content is correctly align with the line numbers.
1616
compare-elements-position: ("//*[@id='1']", ".rust > code > span", ("y"))
17+
18+
// Assert that the line numbers text is aligned to the right.
19+
assert-css: (".line-numbers", {"text-align": "right"})

0 commit comments

Comments
 (0)