summaryrefslogtreecommitdiffstats
path: root/tests/rustdoc-gui/sidebar.goml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rustdoc-gui/sidebar.goml')
-rw-r--r--tests/rustdoc-gui/sidebar.goml14
1 files changed, 8 insertions, 6 deletions
diff --git a/tests/rustdoc-gui/sidebar.goml b/tests/rustdoc-gui/sidebar.goml
index 3c1ed009a..574cc629a 100644
--- a/tests/rustdoc-gui/sidebar.goml
+++ b/tests/rustdoc-gui/sidebar.goml
@@ -152,14 +152,16 @@ assert-property: (".sidebar", {"clientWidth": "200"})
// Checks that all.html and index.html have their sidebar link in the same place.
go-to: "file://" + |DOC_PATH| + "/test_docs/index.html"
-store-property: (index_sidebar_width, ".sidebar .location a", "clientWidth")
-store-property: (index_sidebar_height, ".sidebar .location a", "clientHeight")
-store-property: (index_sidebar_x, ".sidebar .location a", "offsetTop")
-store-property: (index_sidebar_y, ".sidebar .location a", "offsetLeft")
+store-property: (".sidebar .location a", {
+ "clientWidth": index_sidebar_width,
+ "clientHeight": index_sidebar_height,
+ "offsetTop": index_sidebar_y,
+ "offsetLeft": index_sidebar_x,
+})
go-to: "file://" + |DOC_PATH| + "/test_docs/all.html"
assert-property: (".sidebar .location a", {
"clientWidth": |index_sidebar_width|,
"clientHeight": |index_sidebar_height|,
- "offsetTop": |index_sidebar_x|,
- "offsetLeft": |index_sidebar_y|,
+ "offsetTop": |index_sidebar_y|,
+ "offsetLeft": |index_sidebar_x|,
})