Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit b6f8824

Browse files
Ensure that --html-after-content option is used to check scrape_examples_ice rustdoc GUI test
1 parent 91edc3e commit b6f8824

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)

AltStyle によって変換されたページ (->オリジナル) /