2022-09-02 19:15:06 +00:00
|
|
|
// This test ensures that the "item-info" looks about the same
|
|
|
|
// whether or not it's inside a toggle.
|
2023-04-11 17:11:34 +00:00
|
|
|
go-to: "file://" + |DOC_PATH| + "/lib2/struct.ItemInfoAlignmentTest.html"
|
2022-09-02 19:15:06 +00:00
|
|
|
|
|
|
|
// First, we try it in "desktop" mode.
|
2023-04-11 17:11:34 +00:00
|
|
|
set-window-size: (1200, 870)
|
2024-04-01 19:11:22 +00:00
|
|
|
compare-elements-position: (".impl-items > .item-info", "summary > .item-info", ["x"])
|
2022-09-02 19:15:06 +00:00
|
|
|
// Next, we try it in "mobile" mode (max-width: 700px).
|
2023-04-11 17:11:34 +00:00
|
|
|
set-window-size: (650, 650)
|
2024-04-01 19:11:22 +00:00
|
|
|
compare-elements-position: (".impl-items > .item-info", "summary > .item-info", ["x"])
|