tests/gui/sidebar-nojs.goml
raw| 1 | // This GUI test checks that the sidebar takes the whole height when it's inside |
| 2 | // an iframe (because of JS disabled). |
| 3 | // Regression test for <https://github.com/rust-lang/mdBook/issues/2528>. |
| 4 | |
| 5 | // We disable javascript |
| 6 | javascript: false |
| 7 | go-to: |DOC_PATH| + "basic/index.html" |
| 8 | store-value: (height, 1028) |
| 9 | set-window-size: (1028, |height|) |
| 10 | |
| 11 | within-iframe: (".sidebar-iframe-outer", block { |
| 12 | assert-size: (" body", {"height": |height|}) |
| 13 | }) |