Ensure that --html-after-content option is used to check scrape_examples_ice rustdoc GUI test
This commit is contained in:
@@ -4,3 +4,5 @@ wait-for: ".scraped-example-title"
|
|||||||
assert-attribute: (".scraped-example-title a", {"href": "../src/bar/bar.rs.html#2"})
|
assert-attribute: (".scraped-example-title a", {"href": "../src/bar/bar.rs.html#2"})
|
||||||
click: ".scraped-example-title a"
|
click: ".scraped-example-title a"
|
||||||
wait-for-property: ("h1", {"innerText": "bar/\nbar.rs"})
|
wait-for-property: ("h1", {"innerText": "bar/\nbar.rs"})
|
||||||
|
// Ensure that the `--html-after-content` option was correctly handled.
|
||||||
|
assert: "#outer-html"
|
||||||
|
|||||||
@@ -1 +0,0 @@
|
|||||||
|
|
||||||
1
tests/rustdoc-gui/src/scrape_examples_ice/extra.html
Normal file
1
tests/rustdoc-gui/src/scrape_examples_ice/extra.html
Normal file
@@ -0,0 +1 @@
|
|||||||
|
<span id="outer-html"></span>
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
//@ run-flags:-Zrustdoc-scrape-examples
|
//@ run-flags:-Zrustdoc-scrape-examples
|
||||||
//@ compile-flags: --html-after-content empty.html
|
//@ compile-flags: --html-after-content extra.html
|
||||||
pub struct ObscurelyNamedType1;
|
pub struct ObscurelyNamedType1;
|
||||||
|
|
||||||
impl ObscurelyNamedType1 {
|
impl ObscurelyNamedType1 {
|
||||||
|
|||||||
Reference in New Issue
Block a user