Skip to content

Commit 5c9e10e

Browse files
Add check to ensure that the line numbers are aligned with the source code
1 parent 3af9c91 commit 5c9e10e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

+2
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,5 @@ assert-attribute: (".line-numbers > span:nth-child(4)", {"class": "line-highligh
1111
assert-attribute: (".line-numbers > span:nth-child(5)", {"class": "line-highlighted"})
1212
assert-attribute: (".line-numbers > span:nth-child(6)", {"class": "line-highlighted"})
1313
assert-attribute-false: (".line-numbers > span:nth-child(7)", {"class": "line-highlighted"})
14+
// This is to ensure that the content is correctly align with the line numbers.
15+
compare-elements-position: ("//*[@id='1']", ".rust > span", ("y"))

0 commit comments

Comments
 (0)