X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=src%2Ftest%2Frustdoc-gui%2Ftoggle-docs.goml;h=601998b7bd28ac26dc9b2f5a5a8eb84da4e67d52;hb=a81f55fb161a22e287220281d33542406a3a57f8;hp=93bdf41a6a09efbaa5ef26edeeed3c435f20d6b8;hpb=d5a24b0a33bccb69e8ba19da42a15b5a69639e22;p=rust.git diff --git a/src/test/rustdoc-gui/toggle-docs.goml b/src/test/rustdoc-gui/toggle-docs.goml index 93bdf41a6a0..601998b7bd2 100644 --- a/src/test/rustdoc-gui/toggle-docs.goml +++ b/src/test/rustdoc-gui/toggle-docs.goml @@ -1,7 +1,10 @@ goto: file://|DOC_PATH|/test_docs/index.html +assert-attr: ("#main > details.top-doc", {"open": ""}) click: "#toggle-all-docs" -wait-for: 5000 -assert: ("#main > div.docblock.hidden-by-usual-hider") +wait-for: 1000 +// This is now collapsed so there shouldn't be the "open" attribute on details. +assert-attr-false: ("#main > details.top-doc", {"open": ""}) click: "#toggle-all-docs" -wait-for: 5000 -assert: ("#main > div.docblock.hidden-by-usual-hider", 0) +wait-for: 1000 +// Not collapsed anymore so the "open" attribute should be back. +assert-attr: ("#main > details.top-doc", {"open": ""})