rustdoc: add test case for setting-line margin on settings.html
This commit is contained in:
parent
9ee4df0e9c
commit
34d595dda1
@ -8,6 +8,10 @@ assert-false: "#settings"
|
|||||||
click: "#settings-menu"
|
click: "#settings-menu"
|
||||||
wait-for: "#settings"
|
wait-for: "#settings"
|
||||||
assert-css: ("#settings", {"display": "block"})
|
assert-css: ("#settings", {"display": "block"})
|
||||||
|
|
||||||
|
// Store the line margin to compare with the settings.html later.
|
||||||
|
store-css: (setting_line_margin, ".setting-line", "margin")
|
||||||
|
|
||||||
// Let's close it by clicking on the same button.
|
// Let's close it by clicking on the same button.
|
||||||
click: "#settings-menu"
|
click: "#settings-menu"
|
||||||
wait-for-css: ("#settings", {"display": "none"})
|
wait-for-css: ("#settings", {"display": "none"})
|
||||||
@ -211,6 +215,9 @@ assert-css: (".setting-line", {"position": "relative"})
|
|||||||
assert-attribute-false: ("#settings", {"class": "popover"}, CONTAINS)
|
assert-attribute-false: ("#settings", {"class": "popover"}, CONTAINS)
|
||||||
compare-elements-position: (".sub form", "#settings", ("x"))
|
compare-elements-position: (".sub form", "#settings", ("x"))
|
||||||
|
|
||||||
|
// Check that setting-line has the same margin in this mode as in the popover.
|
||||||
|
assert-css: (".setting-line", {"margin": |setting_line_margin|})
|
||||||
|
|
||||||
// We now check the display with JS disabled.
|
// We now check the display with JS disabled.
|
||||||
assert-false: "noscript section"
|
assert-false: "noscript section"
|
||||||
javascript: false
|
javascript: false
|
||||||
|
Loading…
x
Reference in New Issue
Block a user