diff options
| author | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-06-29 15:15:53 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume.gomez@huawei.com> | 2022-06-29 15:15:53 +0200 |
| commit | ea97bdc908ce4651cf9167c52817f46a3b4e200e (patch) | |
| tree | 4cc37e7aeaf2f62559873c17a3d8163293cd19ca /src/test/rustdoc-gui/sidebar-source-code-display.goml | |
| parent | 27ff258826d560d3c57554153bc9dcfdb6712bc9 (diff) | |
| download | rust-ea97bdc908ce4651cf9167c52817f46a3b4e200e.tar.gz rust-ea97bdc908ce4651cf9167c52817f46a3b4e200e.zip | |
Update/add tests for source sidebar in mobile mode
Diffstat (limited to 'src/test/rustdoc-gui/sidebar-source-code-display.goml')
| -rw-r--r-- | src/test/rustdoc-gui/sidebar-source-code-display.goml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/test/rustdoc-gui/sidebar-source-code-display.goml b/src/test/rustdoc-gui/sidebar-source-code-display.goml index 8f53e8627ee..ea8dde7edeb 100644 --- a/src/test/rustdoc-gui/sidebar-source-code-display.goml +++ b/src/test/rustdoc-gui/sidebar-source-code-display.goml @@ -116,3 +116,13 @@ assert-css: ( "#source-sidebar .expand + .children .folders .name", {"color": "rgb(255, 180, 76)", "background-color": "rgb(20, 25, 31)"}, ) + +// Now checking on mobile devices. +size: (500, 700) +reload: +// Waiting for the sidebar to be displayed... +wait-for-css: ("#sidebar-toggle", {"visibility": "visible", "opacity": 1}) + +// We now check it takes the full size of the display. +assert-property: ("body", {"clientWidth": "500", "clientHeight": "700"}) +assert-property: (".sidebar", {"clientWidth": "500", "clientHeight": "700"}) \ No newline at end of file |
