mirror of
https://github.com/rust-lang/rust.git
synced 2025-02-16 17:03:35 +00:00
add compiletest headers to rustdoc-gui tests
This commit is contained in:
parent
6a347322a9
commit
02ea750f0b
@ -8,13 +8,13 @@ set-window-size: (600, 800)
|
||||
assert-property: ("html", {"scrollTop": "0"})
|
||||
|
||||
click: '//a[text() = "barbar"]'
|
||||
assert-property: ("html", {"scrollTop": "125"})
|
||||
assert-property: ("html", {"scrollTop": "149"})
|
||||
click: '//a[text() = "bar"]'
|
||||
assert-property: ("html", {"scrollTop": "156"})
|
||||
assert-property: ("html", {"scrollTop": "180"})
|
||||
click: '//a[text() = "sub_fn"]'
|
||||
assert-property: ("html", {"scrollTop": "53"})
|
||||
assert-property: ("html", {"scrollTop": "77"})
|
||||
|
||||
// We now check that clicking on lines doesn't change the scroll
|
||||
// Extra information: the "sub_fn" function header is on line 1.
|
||||
click: '//*[@id="6"]'
|
||||
assert-property: ("html", {"scrollTop": "53"})
|
||||
assert-property: ("html", {"scrollTop": "77"})
|
||||
|
@ -1 +1,2 @@
|
||||
// compile-flags: --extend-css extra.css
|
||||
//! <div class="extend">text in red</div>
|
||||
|
@ -1,3 +1,4 @@
|
||||
// compile-flags: -Zunstable-options --generate-link-to-definition
|
||||
pub fn sub_fn() {
|
||||
barbar();
|
||||
}
|
||||
|
@ -1,3 +1,4 @@
|
||||
// run-flags:-Zrustdoc-scrape-examples
|
||||
/// # Examples
|
||||
///
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user