diff options
| author | Michael Howell <michael@notriddle.com> | 2022-07-01 15:14:49 -0700 |
|---|---|---|
| committer | Michael Howell <michael@notriddle.com> | 2022-07-02 08:45:52 -0700 |
| commit | 26dccbf4cfca9bba81b72a0ccc49570c62f48737 (patch) | |
| tree | bd4a0c313f65109819a5a49335e0d5d7be8209a3 /src/test/rustdoc-gui | |
| parent | a7c0c9f2bbea6eb0597590fb266c822f01700793 (diff) | |
| download | rust-26dccbf4cfca9bba81b72a0ccc49570c62f48737.tar.gz rust-26dccbf4cfca9bba81b72a0ccc49570c62f48737.zip | |
rustdoc: add test case for background color of the sidebar toggle button
Diffstat (limited to 'src/test/rustdoc-gui')
| -rw-r--r-- | src/test/rustdoc-gui/sidebar-source-code-display.goml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/sidebar-source-code-display.goml b/src/test/rustdoc-gui/sidebar-source-code-display.goml index c441f84a821..daffebf8f51 100644 --- a/src/test/rustdoc-gui/sidebar-source-code-display.goml +++ b/src/test/rustdoc-gui/sidebar-source-code-display.goml @@ -30,6 +30,15 @@ assert-css: ( "#source-sidebar .expand + .children a.selected", {"color": "rgb(0, 0, 0)", "background-color": "rgb(255, 255, 255)"}, ) +// Without hover or focus. +assert-css: ("#sidebar-toggle > button", {"background-color": "rgba(0, 0, 0, 0)"}) +// With focus. +focus: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgb(224, 224, 224)"}) +focus: ".search-input" +// With hover. +move-cursor-to: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgb(224, 224, 224)"}) // Without hover. assert-css: ( "#source-sidebar .expand + .children > .files a:not(.selected)", @@ -62,6 +71,15 @@ assert-css: ( "#source-sidebar .expand + .children a.selected", {"color": "rgb(221, 221, 221)", "background-color": "rgb(51, 51, 51)"}, ) +// Without hover or focus. +assert-css: ("#sidebar-toggle > button", {"background-color": "rgba(0, 0, 0, 0)"}) +// With focus. +focus: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgb(103, 103, 103)"}) +focus: ".search-input" +// With hover. +move-cursor-to: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgb(103, 103, 103)"}) // Without hover. assert-css: ( "#source-sidebar .expand + .children > .files a:not(.selected)", @@ -94,6 +112,15 @@ assert-css: ( "#source-sidebar .expand + .children a.selected", {"color": "rgb(255, 180, 76)", "background-color": "rgb(20, 25, 31)"}, ) +// Without hover or focus. +assert-css: ("#sidebar-toggle > button", {"background-color": "rgba(0, 0, 0, 0)"}) +// With focus. +focus: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgba(70, 70, 70, 0.33)"}) +focus: ".search-input" +// With hover. +move-cursor-to: "#sidebar-toggle > button" +assert-css: ("#sidebar-toggle > button", {"background-color": "rgba(70, 70, 70, 0.33)"}) // Without hover. assert-css: ( "#source-sidebar .expand + .children > .files a:not(.selected)", |
