mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
Add GUI regression test for variant structfields margins
This commit is contained in:
parent
7cfbe23bc8
commit
26b6ccdbd7
@ -1,6 +1,7 @@
|
|||||||
// This test checks that fields are displayed as expected (one by line) and they are surrounded
|
// This test checks that fields are displayed as expected (one by line) and they are surrounded
|
||||||
// by margins.
|
// by margins.
|
||||||
|
|
||||||
|
store-value: (margin, "9.6px")
|
||||||
define-function: (
|
define-function: (
|
||||||
"check-fields",
|
"check-fields",
|
||||||
[path, selector_1, selector_2],
|
[path, selector_1, selector_2],
|
||||||
@ -12,8 +13,8 @@ define-function: (
|
|||||||
|
|
||||||
// Check the margins.
|
// Check the margins.
|
||||||
assert-css: (".structfield.section-header", {
|
assert-css: (".structfield.section-header", {
|
||||||
"margin-top": "9.6px",
|
"margin-top": |margin|,
|
||||||
"margin-bottom": "9.6px",
|
"margin-bottom": |margin|,
|
||||||
"margin-left": "0px",
|
"margin-left": "0px",
|
||||||
"margin-right": "0px",
|
"margin-right": "0px",
|
||||||
}, ALL)
|
}, ALL)
|
||||||
@ -41,9 +42,9 @@ store-position: ("#variant\.B\.field\.b", {"y": b_y})
|
|||||||
assert: |a_y| < |b_y|
|
assert: |a_y| < |b_y|
|
||||||
|
|
||||||
// Check the margins.
|
// Check the margins.
|
||||||
assert-css: (".sub-variant-field .section-header", {
|
assert-css: (".sub-variant-field", {
|
||||||
"margin-top": "0px",
|
"margin-top": |margin|,
|
||||||
"margin-bottom": "0px",
|
"margin-bottom": |margin|,
|
||||||
"margin-left": "0px",
|
"margin-left": "24px",
|
||||||
"margin-right": "0px",
|
"margin-right": "0px",
|
||||||
}, ALL)
|
}, ALL)
|
||||||
|
Loading…
Reference in New Issue
Block a user