]> git.lizzy.rs Git - rust.git/blobdiff - src/test/rustdoc-gui/scrape-examples-button-focus.goml
Auto merge of #2739 - RalfJung:misc, r=RalfJung
[rust.git] / src / test / rustdoc-gui / scrape-examples-button-focus.goml
index a222139f1dc44751b44ff9fbf7b9a44e210ad96f..bba518db099a49693956915158ffb3e224478716 100644 (file)
@@ -1,5 +1,6 @@
 goto: "file://" + |DOC_PATH| + "/scrape_examples/fn.test.html"
 
+// The next/prev buttons vertically scroll the code viewport between examples
 store-property: (initialScrollTop, ".scraped-example-list > .scraped-example pre", "scrollTop")
 focus: ".scraped-example-list > .scraped-example .next"
 press-key: "Enter"
@@ -12,6 +13,7 @@ assert-property: (".scraped-example-list > .scraped-example pre", {
        "scrollTop": |initialScrollTop|
 })
 
+// The expand button increases the scrollHeight of the minimized code viewport
 store-property: (smallOffsetHeight, ".scraped-example-list > .scraped-example pre", "offsetHeight")
 assert-property-false: (".scraped-example-list > .scraped-example pre", {
        "scrollHeight": |smallOffsetHeight|