about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-22 11:17:53 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-06-22 11:17:53 +0200
commit5c9e10eec3b8a131c0b1f20ef21835a5a48a18bc (patch)
tree6b7d6dc9e882cf2c72abc2c45c97b6f409a96074
parent3af9c9157e40197f404c95ddfda68114d9ef2adb (diff)
downloadrust-5c9e10eec3b8a131c0b1f20ef21835a5a48a18bc.tar.gz
rust-5c9e10eec3b8a131c0b1f20ef21835a5a48a18bc.zip
Add check to ensure that the line numbers are aligned with the source code
-rw-r--r--src/test/rustdoc-gui/source-code-page.goml2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml
index 41232dbd80f..d7bae93c211 100644
--- a/src/test/rustdoc-gui/source-code-page.goml
+++ b/src/test/rustdoc-gui/source-code-page.goml
@@ -11,3 +11,5 @@ assert-attribute: (".line-numbers > span:nth-child(4)", {"class": "line-highligh
 assert-attribute: (".line-numbers > span:nth-child(5)", {"class": "line-highlighted"})
 assert-attribute: (".line-numbers > span:nth-child(6)", {"class": "line-highlighted"})
 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 > span", ("y"))