Skip to content

Commit 5545848

Browse files
authored
Unrolled build for #146242
Rollup merge of #146242 - GuillaumeGomez:rustdoc-gui-scrape, r=lolbinarycat Ensure that `--html-after-content` option is used to check `scrape_examples_ice` rustdoc GUI test Follow-up of #146091. This test ensures that the spans are correctly handled when a "local source file" is not the first in the file list. To ensure it's actually what's tested, this test checks that the option is actually used by adding an element. r? `@lolbinarycat`
2 parents 99317ef + b6f8824 commit 5545848

File tree

4 files changed

+4
-2
lines changed

4 files changed

+4
-2
lines changed

tests/rustdoc-gui/scrape-examples-ice-links.goml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,5 @@ wait-for: ".scraped-example-title"
44
assert-attribute: (".scraped-example-title a", {"href": "../src/bar/bar.rs.html#2"})
55
click: ".scraped-example-title a"
66
wait-for-property: ("h1", {"innerText": "bar/\nbar.rs"})
7+
// Ensure that the `--html-after-content` option was correctly handled.
8+
assert: "#outer-html"

tests/rustdoc-gui/src/scrape_examples_ice/empty.html

Lines changed: 0 additions & 1 deletion
This file was deleted.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<span id="outer-html"></span>

tests/rustdoc-gui/src/scrape_examples_ice/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
//@ run-flags:-Zrustdoc-scrape-examples
2-
//@ compile-flags: --html-after-content empty.html
2+
//@ compile-flags: --html-after-content extra.html
33
pub struct ObscurelyNamedType1;
44

55
impl ObscurelyNamedType1 {

0 commit comments

Comments
 (0)