diff options
| author | Michael Howell <michael@notriddle.com> | 2022-10-28 09:51:57 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-10-31 13:59:52 -0700 |
| commit | ba4ae13528428cf770701ea5d9203cbf64b5a1cd (patch) | |
| tree | 86e1bebbb7007b5e9f6052d7578d87a2300a086b /src/test/rustdoc-gui/source-code-page.goml | |
| parent | 07bb2f701e5bae0da724068bbce1920458df9cda (diff) | |
| download | rust-ba4ae13528428cf770701ea5d9203cbf64b5a1cd.tar.gz rust-ba4ae13528428cf770701ea5d9203cbf64b5a1cd.zip | |
rustdoc: remove left border from `.src-line-numbers > a`
Diffstat (limited to 'src/test/rustdoc-gui/source-code-page.goml')
| -rw-r--r-- | src/test/rustdoc-gui/source-code-page.goml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/source-code-page.goml b/src/test/rustdoc-gui/source-code-page.goml index 31d55cd7885..c71a3d64d0c 100644 --- a/src/test/rustdoc-gui/source-code-page.goml +++ b/src/test/rustdoc-gui/source-code-page.goml @@ -6,6 +6,11 @@ click: ".src-line-numbers > a:nth-child(4)" // This is the anchor for line 4. // Ensure that the page URL was updated. assert-document-property: ({"URL": "lib.rs.html#4"}, ENDS_WITH) assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"}) +// Ensure that the default style, with the right border, isn't used. +assert-css: ("//*[@id='4']", {"border-right-width": "0px"}) +reload: +assert-attribute: ("//*[@id='4']", {"class": "line-highlighted"}) +assert-css: ("//*[@id='4']", {"border-right-width": "0px"}) // We now check that the good anchors are highlighted goto: "file://" + |DOC_PATH| + "/src/test_docs/lib.rs.html#4-6" assert-attribute-false: (".src-line-numbers > a:nth-child(3)", {"class": "line-highlighted"}) |
