]> git.lizzy.rs Git - rust.git/commitdiff
Add GUI test for settings in small device
authorGuillaume Gomez <guillaume.gomez@huawei.com>
Wed, 27 Jul 2022 12:45:07 +0000 (14:45 +0200)
committerGuillaume Gomez <guillaume.gomez@huawei.com>
Wed, 27 Jul 2022 12:45:12 +0000 (14:45 +0200)
src/test/rustdoc-gui/settings.goml

index 8a3365d3cc25e2c90becdb28d450c275e343ebd1..d9cf5ee66140fc05bfab8982dac75bdd3f88626d 100644 (file)
@@ -147,3 +147,12 @@ assert-false: "noscript section"
 javascript: false
 reload:
 assert-css: ("noscript section", {"display": "block"})
+javascript: true
+
+// Check for the display on small screen
+show-text: true
+reload:
+size: (300, 1000)
+click: "#settings-menu"
+wait-for: "#settings"
+assert-css: ("#settings .slider", {"width": "45px"}, ALL)