提交 02ea750f 编写于 作者: O ozkanonur

add compiletest headers to rustdoc-gui tests

上级 6a347322
......@@ -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"})
// compile-flags: --extend-css extra.css
//! <div class="extend">text in red</div>
// compile-flags: -Zunstable-options --generate-link-to-definition
pub fn sub_fn() {
barbar();
}
......
// run-flags:-Zrustdoc-scrape-examples
/// # Examples
///
/// ```
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册