about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume.gomez@huawei.com>2022-03-07 12:08:14 +0100
committerGuillaume Gomez <guillaume.gomez@huawei.com>2022-03-07 12:08:14 +0100
commitf23d6d3a47c15bc0fc3fbf2abdd318c3a2c09c7c (patch)
tree7d70a2d94d6d678fe56a9007c1e9e3edf774138d
parente89efb8634a1ffc8e7573b6f4cf53aa9b36d92ae (diff)
downloadrust-f23d6d3a47c15bc0fc3fbf2abdd318c3a2c09c7c.tar.gz
rust-f23d6d3a47c15bc0fc3fbf2abdd318c3a2c09c7c.zip
Add GUI test to ensure that line numbers text is aligned to the right
-rw-r--r--src/test/rustdoc-gui/source-code-page.goml3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml
index 375ff4878e5..ad7080c39b8 100644
--- a/src/test/rustdoc-gui/source-code-page.goml
+++ b/src/test/rustdoc-gui/source-code-page.goml
@@ -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"})