Ensure that --html-after-content option is used to check scrape_examples_ice rustdoc GUI test

This commit is contained in:
Guillaume Gomez
2025-09-05 15:13:08 +02:00
parent 91edc3ebcc
commit b6f8824315
4 changed files with 4 additions and 2 deletions

View File

@@ -4,3 +4,5 @@ wait-for: ".scraped-example-title"
assert-attribute: (".scraped-example-title a", {"href": "../src/bar/bar.rs.html#2"})
click: ".scraped-example-title a"
wait-for-property: ("h1", {"innerText": "bar/\nbar.rs"})
// Ensure that the `--html-after-content` option was correctly handled.
assert: "#outer-html"

View File

@@ -0,0 +1 @@
<span id="outer-html"></span>

View File

@@ -1,5 +1,5 @@
//@ run-flags:-Zrustdoc-scrape-examples
//@ compile-flags: --html-after-content empty.html
//@ compile-flags: --html-after-content extra.html
pub struct ObscurelyNamedType1;
impl ObscurelyNamedType1 {