diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-01-18 04:41:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-01-18 04:41:58 +0100 |
| commit | d501ead0096072f1e85bc13d41ca6ab70dafd8be (patch) | |
| tree | e0f644c863600ed3f4643c4f9b2c63e070cffcd9 /src/test/rustdoc-gui | |
| parent | 86b1581ea0e0e47196e1ea70b2d980b3eee72623 (diff) | |
| parent | 04f04026c5cc9b23b59d9a630a03945ce4780cdd (diff) | |
| download | rust-d501ead0096072f1e85bc13d41ca6ab70dafd8be.tar.gz rust-d501ead0096072f1e85bc13d41ca6ab70dafd8be.zip | |
Rollup merge of #92629 - jsha:theme-picker-local-only-2, r=GuillaumeGomez
Pick themes on settings page, not every page This hides the paintbrush icon on most pages by default, in preference for the settings on the settings page. When loading from a local file, and not in mobile view, continue to show the theme picker. That's because some browsers limit access to localStorage from file:/// URLs, so choosing a theme from settings.html doesn't take effect. Fixes #84539 Part of #59840 r? `@GuillaumeGomez` Demo: https://rustdoc.crud.net/jsha/theme-picker-local-only-2/std/io/trait.Read.html
Diffstat (limited to 'src/test/rustdoc-gui')
| -rw-r--r-- | src/test/rustdoc-gui/toggle-docs-mobile.goml | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/test/rustdoc-gui/toggle-docs-mobile.goml b/src/test/rustdoc-gui/toggle-docs-mobile.goml index 6e0ad8e0fa7..67b9164cfec 100644 --- a/src/test/rustdoc-gui/toggle-docs-mobile.goml +++ b/src/test/rustdoc-gui/toggle-docs-mobile.goml @@ -1,12 +1,12 @@ goto: file://|DOC_PATH|/test_docs/struct.Foo.html size: (433, 600) assert-attribute: (".top-doc", {"open": ""}) -click: (4, 240) // This is the position of the top doc comment toggle +click: (4, 260) // This is the position of the top doc comment toggle assert-attribute-false: (".top-doc", {"open": ""}) -click: (4, 240) +click: (4, 260) assert-attribute: (".top-doc", {"open": ""}) // To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. -click: (3, 240) +click: (3, 260) assert-attribute: (".top-doc", {"open": ""}) // Assert the position of the toggle on the top doc block. @@ -22,10 +22,10 @@ assert-position: ( // Now we do the same but with a little bigger width size: (600, 600) assert-attribute: (".top-doc", {"open": ""}) -click: (4, 240) // New Y position since all search elements are back on one line. +click: (4, 260) // New Y position since all search elements are back on one line. assert-attribute-false: (".top-doc", {"open": ""}) -click: (4, 240) +click: (4, 260) assert-attribute: (".top-doc", {"open": ""}) // To ensure that the toggle isn't over the text, we check that the toggle isn't clicked. -click: (3, 240) +click: (3, 260) assert-attribute: (".top-doc", {"open": ""}) |
